svn commit: r242860 - stable/9/sys/dev/cpuctl

Andriy Gapon avg at FreeBSD.org
Sat Nov 10 12:08:06 UTC 2012


Author: avg
Date: Sat Nov 10 12:08:06 2012
New Revision: 242860
URL: http://svnweb.freebsd.org/changeset/base/242860

Log:
  MFC r242565: cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call

Modified:
  stable/9/sys/dev/cpuctl/cpuctl.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/cpuctl/cpuctl.c
==============================================================================
--- stable/9/sys/dev/cpuctl/cpuctl.c	Sat Nov 10 12:06:36 2012	(r242859)
+++ stable/9/sys/dev/cpuctl/cpuctl.c	Sat Nov 10 12:08:06 2012	(r242860)
@@ -204,7 +204,7 @@ cpuctl_do_cpuid(int cpu, cpuctl_cpuid_ar
 	oldcpu = td->td_oncpu;
 	is_bound = cpu_sched_is_bound(td);
 	set_cpu(cpu, td);
-	do_cpuid(data->level, data->data);
+	cpuid_count(data->level, 0, data->data);
 	restore_cpu(oldcpu, is_bound, td);
 	return (0);
 }


More information about the svn-src-stable-9 mailing list