summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-11-16 12:43:45 +0000
committeravg <avg@FreeBSD.org>2010-11-16 12:43:45 +0000
commite9d45ef8b4ae1cc5b4d2deaf8508113b62450a3c (patch)
treee438aa2aaf4f35a6e29a72068a68b561c40f0a76 /sys/kern
parentea5ab3324882abc2f22c94062991d7cccb04640f (diff)
downloadFreeBSD-src-e9d45ef8b4ae1cc5b4d2deaf8508113b62450a3c.zip
FreeBSD-src-e9d45ef8b4ae1cc5b4d2deaf8508113b62450a3c.tar.gz
hwpstate: use CPU_FOREACH when binding to all available processors
Also, add a comment mentioning _PSD - on some systems it's enough to put one logical CPU into a particular P-state to make other CPUs in the same domain to enter that P-state. Also, call sched_unbind() after the loop - sched_bind() automatically rebinds from previous CPU to a new one, and the new arrangement of code is safer against early loop exit. Plus one minor style nit. MFC after: 10 days
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud