]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: fix un-intended affinity of forked program
authorLen Brown <len.brown@intel.com>
Mon, 4 Jun 2012 03:24:00 +0000 (23:24 -0400)
committerLen Brown <len.brown@intel.com>
Mon, 4 Jun 2012 03:24:00 +0000 (23:24 -0400)
commit02436fc9725df31d2bcf5d87e365eb3cef75ea16
tree03c323fe9623f7e82400bdfabdd3711a45596a53
parentb7dc9622e4c3808ef905a72fda997b5fc0c6f7d2
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:

e071006f61339f2af7963157e190590a9bdf79d0
(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>
tools/power/x86/turbostat/turbostat.c