From 97bfb7d38f00b3c8636b32feab011e9da773a86e Mon Sep 17 00:00:00 2001 From: Stephen Dickey Date: Wed, 31 Aug 2022 16:07:05 -0700 Subject: [PATCH] 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 --- kernel/sched/walt/core_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/walt/core_ctl.c b/kernel/sched/walt/core_ctl.c index cdb123d90b8f..ebd0b01da5f7 100644 --- a/kernel/sched/walt/core_ctl.c +++ b/kernel/sched/walt/core_ctl.c @@ -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);