diff options
| author | Hungyu Lin <dennylin0707@gmail.com> | 2026-10-23 06:07:24 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-10-26 20:21:23 +0100 |
| commit | 82c9c94f54a444a686e926c872dae4b198d1036f (patch) | |
| tree | 3b7250ac5fecf88ffaa9a24b1189d9f8d0fb1361 /scripts/Makefile.thinlto | |
| parent | 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614 (diff) | |
| download | linux-82c9c94f54a444a686e926c872dae4b198d1036f.tar.gz linux-82c9c94f54a444a686e926c872dae4b198d1036f.zip | |
thermal: Fix CPU mask truncation in power limit trace event
num_possible_cpus() counts CPUs, but CPU IDs need not be contiguous.
Using it to size the thermal_power_cpu_limit bitmap can omit CPUs with
higher IDs. For example, possible CPUs 0 and 64 produce an eight-byte
bitmap on a 64-bit system, dropping CPU 64.
Use nr_cpumask_bits for both sizing and copying the bitmap.
Fixes: 6828a4711f99 ("thermal: add trace events to the power allocator governor")
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Link: https://patch.msgid.link/20261023060724.5691-1-dennylin0707@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
