From: Roman Gushchin <kl...@yandex-team.ru> This patch introduces nosmart boot option, that is intended to disable smart globally at boot time.
Signed-off-by: Roman Gushchin <kl...@yandex-team.ru> --- kernel/sched/rt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index a3fd83c..ff7751a 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2319,6 +2319,13 @@ static int cpu_with_number(int number, cpumask_t *mask) return -1; } +static int __init nosmart_setup(char *str) +{ + static_key_slow_dec(&__smart_enabled); + return 0; +} +early_param("nosmart", nosmart_setup); + void build_smart_topology(void) { int cpu; -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/