Skip to content
Commit a6e4491c authored by Prarit Bhargava's avatar Prarit Bhargava Committed by Ingo Molnar
Browse files

sched/isolcpus: Output warning when the 'isolcpus=' kernel parameter is invalid



The isolcpus= kernel boot parameter restricts userspace from scheduling on
the specified CPUs.

If a CPU is specified that is outside the range of 0 to nr_cpu_ids,
cpulist_parse() will return -ERANGE, return an empty cpulist, and
fail silently.

This patch adds an error message to isolated_cpu_setup() to indicate to
the user that something has gone awry, and returns 0 on error.

Signed-off-by: default avatarPrarit Bhargava <prarit@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1454596680-10367-1-git-send-email-prarit@redhat.com


[ Twiddled some details. ]
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent b37a05c0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment