lkml.org 
[lkml]   [2014]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 13/19] smart: nosmart boot option
Date
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


\
 
 \ /
  Last update: 2014-09-04 19:01    [W:0.111 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site