aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorRicardo Neri <[email protected]>2025-04-19 02:55:04 +0000
committerRafael J. Wysocki <[email protected]>2025-05-07 19:56:55 +0000
commitf1a50492f5bdb024a5eb4d1de6798369dbf93418 (patch)
treeee16f8cae8fad5d027772d8cb32a244a4631b6e4 /drivers/fpga/tests/fpga-bridge-test.c
parentarch_topology: Relocate cpu_scale to topology.[h|c] (diff)
downloadkernel-f1a50492f5bdb024a5eb4d1de6798369dbf93418.tar.gz
kernel-f1a50492f5bdb024a5eb4d1de6798369dbf93418.zip
cpufreq: intel_pstate: Populate the cpu_capacity sysfs entries
Intel hybrid processors have CPUs of different capacity. Populate the interface /sys/devices/system/cpu/cpuN/cpu_capacity. This interface uses the per-CPU variable `cpu_scale`. On x86 this variable has no other use besides feeding the sysfs entries. Initialize it when setting CPU capacity for the scheduler and scale-invariant code. Feed it with arch_scale_cpu_capacity() as it gives capacity normalized to the interval [0, SCHED_CAPACITY_SCALE]. Signed-off-by: Ricardo Neri <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions