Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2016 03:07:35 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297800 - head/sys/dev/hyperv/vmbus
Message-ID:  <201604110307.u3B37ZR9064228@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Mon Apr 11 03:07:35 2016
New Revision: 297800
URL: https://svnweb.freebsd.org/changeset/base/297800

Log:
  hyperv/vmbus: Nuke unused function
  
  MFC after:	1 week
  Sponsored by:	Microsoft OSTC

Modified:
  head/sys/dev/hyperv/vmbus/hv_hv.c
  head/sys/dev/hyperv/vmbus/hv_vmbus_priv.h

Modified: head/sys/dev/hyperv/vmbus/hv_hv.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_hv.c	Mon Apr 11 02:42:04 2016	(r297799)
+++ head/sys/dev/hyperv/vmbus/hv_hv.c	Mon Apr 11 03:07:35 2016	(r297800)
@@ -70,18 +70,6 @@ hv_get_timecount(struct timecounter *tc)
 }
 
 /**
- * @brief Query the cpuid for presence of windows hypervisor
- */
-int
-hv_vmbus_query_hypervisor_presence(void) 
-{
-	if (vm_guest != VM_GUEST_HV)
-		return (0);
-
-	return (hv_high >= HV_X64_CPUID_MIN && hv_high <= HV_X64_CPUID_MAX);
-}
-
-/**
  * @brief Get version of the windows hypervisor
  */
 static int

Modified: head/sys/dev/hyperv/vmbus/hv_vmbus_priv.h
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_priv.h	Mon Apr 11 02:42:04 2016	(r297799)
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_priv.h	Mon Apr 11 03:07:35 2016	(r297800)
@@ -704,7 +704,6 @@ uint16_t		hv_vmbus_post_msg_via_msg_ipc(
 uint16_t		hv_vmbus_signal_event(void *con_id);
 void			hv_vmbus_synic_init(void *irq_arg);
 void			hv_vmbus_synic_cleanup(void *arg);
-int			hv_vmbus_query_hypervisor_presence(void);
 
 struct hv_device*	hv_vmbus_child_device_create(
 				hv_guid			device_type,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604110307.u3B37ZR9064228>