tools/power turbostat: Fix PMT mmaped file size rounding
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Fri, 20 Dec 2024 12:38:34 +0000 (13:38 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 14 Jan 2025 19:50:53 +0000 (13:50 -0600)
commit2f60f03934a50bc1fb69bb4f47a25cddd6807b0b
treee9cd9ea8598ba3a36ebbdb360be46a304e0d249d
parent4a358ba215dfefe161b5904e51e48f5f0e82652f
tools/power turbostat: Fix PMT mmaped file size rounding

This (the old code) is just not how you round up to a page size.
Noticed on a recent Intel platform. Previous ones must have been
reporting sizes already aligned to a page and so the bug was missed when
testing.

Fixes: f0e4ed752fda ("tools/power turbostat: Add early support for PMT counters")
Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c