[PATCH v2 0/2] cpufreq: CPPC: idle cpu perf handling

From: Prashant Malani
Date: Wed Jun 18 2025 - 20:09:40 EST


This is a short series to address the unreliable feedback performance
counter values that are returned by the CPPC driver when the CPU is
idle.

The first patch exposes idle_cpu() to be accessible to modules, and the
second patch does the actual change of not reading the feedback counters
when we know that the CPU is idle.

v1(single patch): https://lore.kernel.org/all/20250614003601.1600784-1-pmalani@xxxxxxxxxx/

Prashant Malani (2):
sched: Expose idle_cpu() to modules
cpufreq: CPPC: Dont read counters for idle CPUs

drivers/cpufreq/cppc_cpufreq.c | 5 +++++
kernel/sched/syscalls.c | 1 +
2 files changed, 6 insertions(+)

--
2.50.0.rc2.701.gf1e915cc24-goog