summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/drm/radeon/radeon_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_device.c b/sys/dev/pci/drm/radeon/radeon_device.c
index ec631f66cd9..33d4ea7d8af 100644
--- a/sys/dev/pci/drm/radeon/radeon_device.c
+++ b/sys/dev/pci/drm/radeon/radeon_device.c
@@ -650,8 +650,8 @@ void radeon_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc)
*/
static bool radeon_device_is_virtual(void)
{
-#ifdef CONFIG_X86
- return boot_cpu_has(X86_FEATURE_HYPERVISOR);
+#if defined(__amd64__) || defined(__i386__)
+ return (cpu_ecxfeature & CPUIDECX_HV);
#else
return false;
#endif