Home
last modified time | relevance | path

Searched hist:"15 aaa34654831e98dd76f7738b6c7f5d05a66430" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/power/x86/turbostat/
H A Dturbostat.cdiff d15cf7c129fa4ec4b44c52521e49ffafb9749029 Sun Jun 03 22:24:00 CDT 2012 Len Brown <len.brown@intel.com> tools/power turbostat: fix un-intended affinity of forked program

Linux 3.4 included a modification to turbostat to
lower cross-call overhead by using scheduler affinity:

15aaa34654831e98dd76f7738b6c7f5d05a66430
(tools turbostat: reduce measurement overhead due to IPIs)

In the use-case where turbostat forks a child program,
that change had the un-intended side-effect of binding
the child to the last cpu in the system.

This change removed the binding before forking the child.

This is a back-port of a fix already included in turbostat v2.

Signed-off-by: Len Brown <len.brown@intel.com>
diff 15aaa34654831e98dd76f7738b6c7f5d05a66430 Thu Mar 29 21:19:58 CDT 2012 Len Brown <len.brown@intel.com> tools turbostat: harden against cpu online/offline

Sometimes users have turbostat running in interval mode
when they take processors offline/online.

Previously, turbostat would survive, but not gracefully.

Tighten up the error checking so turbostat notices
changesn sooner, and print just 1 line on change:

turbostat: re-initialized with num_cpus %d

Signed-off-by: Len Brown <len.brown@intel.com>