Messages in this thread Patch in this message | | | From | klamm@yandex-t ... | Subject | [PATCH 13/19] smart: nosmart boot option | Date | Thu, 4 Sep 2014 20:30:59 +0400 |
| |
From: Roman Gushchin <klamm@yandex-team.ru>
This patch introduces nosmart boot option, that is intended to disable smart globally at boot time.
Signed-off-by: Roman Gushchin <klamm@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
| |