Commit 7bb3fe2
committed
tools/power/turbostat: Obey allowed CPUs during startup
Set turbostat CPU affinity to make sure turbostat is running on one of
the allowed CPUs.
Set base_cpu to the first allowed CPU so that some platform information
is dumped using one of the allowed CPUs.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>1 parent 4ede6d1 commit 7bb3fe2
1 file changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5731 | 5731 | | |
5732 | 5732 | | |
5733 | 5733 | | |
| 5734 | + | |
| 5735 | + | |
| 5736 | + | |
| 5737 | + | |
5734 | 5738 | | |
5735 | 5739 | | |
5736 | 5740 | | |
| |||
5941 | 5945 | | |
5942 | 5946 | | |
5943 | 5947 | | |
5944 | | - | |
5945 | | - | |
5946 | | - | |
| 5948 | + | |
5947 | 5949 | | |
5948 | | - | |
5949 | | - | |
| 5950 | + | |
| 5951 | + | |
| 5952 | + | |
| 5953 | + | |
| 5954 | + | |
| 5955 | + | |
| 5956 | + | |
| 5957 | + | |
| 5958 | + | |
5950 | 5959 | | |
5951 | 5960 | | |
5952 | 5961 | | |
| |||
5976 | 5985 | | |
5977 | 5986 | | |
5978 | 5987 | | |
5979 | | - | |
5980 | | - | |
5981 | 5988 | | |
5982 | 5989 | | |
5983 | 5990 | | |
| |||
0 commit comments