diff options
| author | Prarit Bhargava <prarit@redhat.com> | 2020-06-29 22:26:57 +0300 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2020-09-03 20:57:47 +0300 |
| commit | 8201a0285789fade1c5b031914577e2b27a64f05 (patch) | |
| tree | eb4994c870de72b430d38961b4aac0bb0e6bee17 /drivers/fpga/altera-fpga2sdram.c | |
| parent | 9972d5d84d76982606806b2ce887f70c2f8ba60a (diff) | |
| download | linux-8201a0285789fade1c5b031914577e2b27a64f05.tar.xz | |
tools/power turbostat: Use sched_getcpu() instead of hardcoded cpu 0
Disabling cpu 0 results in an error
turbostat: /sys/devices/system/cpu/cpu0/topology/thread_siblings: open failed: No such file or directory
Use sched_getcpu() instead of a hardcoded cpu 0 to get the max cpu number.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions
