tools/power turbostat: Fix PMT mmaped file size rounding

[ Upstream commit 2f60f03934 ]

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: f0e4ed752f ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Patryk Wlazlyn 2024-12-20 13:38:34 +01:00 • committed by Greg Kroah-Hartman
commit d562d14f1b