mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
kernel/sched/walt: change formatting for not_preferred output
Core control takes a numeric input for the not_preferred field to identify which cpus can be paused. 1 means can pause, 0 means the cpu cannot pause. The output is in order of the number of the cpu. For example # cat /sys/devices/system/cpu/cpu3/core_ctl/not_preferred 1 0 1 0 This means that cpu 3 and cpu 5 are not_preferred and can be paused. Change-Id: Ia4b982352bba7e463d59579ece13ccfcb09b0baf Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
This commit is contained in:
parent
774bb80375
commit
97bfb7d38f
|
|
@ -392,7 +392,7 @@ static ssize_t show_not_preferred(const struct cluster_data *state, char *buf)
|
|||
for (i = 0; i < state->num_cpus; i++) {
|
||||
c = &per_cpu(cpu_state, i + state->first_cpu);
|
||||
count += scnprintf(buf + count, PAGE_SIZE - count,
|
||||
"CPU#%d: %u\n", c->cpu, c->not_preferred);
|
||||
"%u ", c->not_preferred);
|
||||
}
|
||||
spin_unlock_irqrestore(&state_lock, flags);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user