aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/rtasd.c9
-rw-r--r--arch/powerpc/platforms/pseries/hotplug-cpu.c10
-rw-r--r--arch/s390/kernel/time.c8
-rw-r--r--arch/s390/kernel/topology.c7
-rw-r--r--arch/x86/kernel/aperture_64.c12
-rw-r--r--include/linux/tick.h2
-rw-r--r--kernel/time/hrtimer.c10
-rw-r--r--kernel/time/tick-sched.c10
8 files changed, 15 insertions, 53 deletions
diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c
index 5a2c049c1c61..aa610ce8742f 100644
--- a/arch/powerpc/kernel/rtasd.c
+++ b/arch/powerpc/kernel/rtasd.c
@@ -49,7 +49,7 @@ static unsigned int rtas_error_log_buffer_max;
49static unsigned int event_scan; 49static unsigned int event_scan;
50static unsigned int rtas_event_scan_rate; 50static unsigned int rtas_event_scan_rate;
51 51
52static int full_rtas_msgs = 0; 52static bool full_rtas_msgs;
53 53
54/* Stop logging to nvram after first fatal error */ 54/* Stop logging to nvram after first fatal error */
55static int logging_enabled; /* Until we initialize everything, 55static int logging_enabled; /* Until we initialize everything,
@@ -592,11 +592,6 @@ __setup("surveillance=", surveillance_setup);
592 592
593static int __init rtasmsgs_setup(char *str) 593static int __init rtasmsgs_setup(char *str)
594{ 594{
595 if (strcmp(str, "on") == 0) 595 return (kstrtobool(str, &full_rtas_msgs) == 0);
596 full_rtas_msgs = 1;
597 else if (strcmp(str, "off") == 0)
598 full_rtas_msgs = 0;
599
600 return 1;
601} 596}
602__setup("rtasmsgs=", rtasmsgs_setup); 597__setup("rtasmsgs=", rtasmsgs_setup);
diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c
index 32274f72fe3f..282837a1d74b 100644
--- a/arch/powerpc/platforms/pseries/hotplug-cpu.c
+++ b/arch/powerpc/platforms/pseries/hotplug-cpu.c
@@ -47,20 +47,14 @@ static DEFINE_PER_CPU(enum cpu_state_vals, current_state) = CPU_STATE_OFFLINE;
47 47
48static enum cpu_state_vals default_offline_state = CPU_STATE_OFFLINE; 48static enum cpu_state_vals default_offline_state = CPU_STATE_OFFLINE;
49 49
50static int cede_offline_enabled __read_mostly = 1; 50static bool cede_offline_enabled __read_mostly = true;
51 51
52/* 52/*
53 * Enable/disable cede_offline when available. 53 * Enable/disable cede_offline when available.
54 */ 54 */
55static int __init setup_cede_offline(char *str) 55static int __init setup_cede_offline(char *str)
56{ 56{
57 if (!strcmp(str, "off")) 57 return (kstrtobool(str, &cede_offline_enabled) == 0);
58 cede_offline_enabled = 0;
59 else if (!strcmp(str, "on"))
60 cede_offline_enabled = 1;
61 else
62 return 0;
63 return 1;
64} 58}
65 59
66__setup("cede_offline=", setup_cede_offline); 60__setup("cede_offline=", setup_cede_offline);
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index c4e5f183f225..9409d32f285e 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -1432,7 +1432,7 @@ device_initcall(etr_init_sysfs);
1432/* 1432/*
1433 * Server Time Protocol (STP) code. 1433 * Server Time Protocol (STP) code.
1434 */ 1434 */
1435static int stp_online; 1435static bool stp_online;
1436static struct stp_sstpi stp_info; 1436static struct stp_sstpi stp_info;
1437static void *stp_page; 1437static void *stp_page;
1438 1438
@@ -1443,11 +1443,7 @@ static struct timer_list stp_timer;
1443 1443
1444static int __init early_parse_stp(char *p) 1444static int __init early_parse_stp(char *p)
1445{ 1445{
1446 if (strncmp(p, "off", 3) == 0) 1446 return kstrtobool(p, &stp_online);
1447 stp_online = 0;
1448 else if (strncmp(p, "on", 2) == 0)
1449 stp_online = 1;
1450 return 0;
1451} 1447}
1452early_param("stp", early_parse_stp); 1448early_param("stp", early_parse_stp);
1453 1449
diff --git a/arch/s390/kernel/topology.c b/arch/s390/kernel/topology.c
index 40b8102fdadb..64298a867589 100644
--- a/arch/s390/kernel/topology.c
+++ b/arch/s390/kernel/topology.c
@@ -37,7 +37,7 @@ static void set_topology_timer(void);
37static void topology_work_fn(struct work_struct *work); 37static void topology_work_fn(struct work_struct *work);
38static struct sysinfo_15_1_x *tl_info; 38static struct sysinfo_15_1_x *tl_info;
39 39
40static int topology_enabled = 1; 40static bool topology_enabled = true;
41static DECLARE_WORK(topology_work, topology_work_fn); 41static DECLARE_WORK(topology_work, topology_work_fn);
42 42
43/* 43/*
@@ -444,10 +444,7 @@ static const struct cpumask *cpu_book_mask(int cpu)
444 444
445static int __init early_parse_topology(char *p) 445static int __init early_parse_topology(char *p)
446{ 446{
447 if (strncmp(p, "off", 3)) 447 return kstrtobool(p, &topology_enabled);
448 return 0;
449 topology_enabled = 0;
450 return 0;
451} 448}
452early_param("topology", early_parse_topology); 449early_param("topology", early_parse_topology);
453 450
diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
index 6e85f713641d..0a2bb1f62e72 100644
--- a/arch/x86/kernel/aperture_64.c
+++ b/arch/x86/kernel/aperture_64.c
@@ -227,19 +227,11 @@ static u32 __init search_agp_bridge(u32 *order, int *valid_agp)
227 return 0; 227 return 0;
228} 228}
229 229
230static int gart_fix_e820 __initdata = 1; 230static bool gart_fix_e820 __initdata = true;
231 231
232static int __init parse_gart_mem(char *p) 232static int __init parse_gart_mem(char *p)
233{ 233{
234 if (!p) 234 return kstrtobool(p, &gart_fix_e820);
235 return -EINVAL;
236
237 if (!strncmp(p, "off", 3))
238 gart_fix_e820 = 0;
239 else if (!strncmp(p, "on", 2))
240 gart_fix_e820 = 1;
241
242 return 0;
243} 235}
244early_param("gart_fix_e820", parse_gart_mem); 236early_param("gart_fix_e820", parse_gart_mem);
245 237
diff --git a/include/linux/tick.h b/include/linux/tick.h
index 21f73649a4dc..62be0786d6d0 100644
--- a/include/linux/tick.h
+++ b/include/linux/tick.h
@@ -111,7 +111,7 @@ enum tick_dep_bits {
111#define TICK_DEP_MASK_CLOCK_UNSTABLE (1 << TICK_DEP_BIT_CLOCK_UNSTABLE) 111#define TICK_DEP_MASK_CLOCK_UNSTABLE (1 << TICK_DEP_BIT_CLOCK_UNSTABLE)
112 112
113#ifdef CONFIG_NO_HZ_COMMON 113#ifdef CONFIG_NO_HZ_COMMON
114extern int tick_nohz_enabled; 114extern bool tick_nohz_enabled;
115extern int tick_nohz_tick_stopped(void); 115extern int tick_nohz_tick_stopped(void);
116extern void tick_nohz_idle_enter(void); 116extern void tick_nohz_idle_enter(void);
117extern void tick_nohz_idle_exit(void); 117extern void tick_nohz_idle_exit(void);
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index 58a321c34cfb..fa0b983290cf 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -515,7 +515,7 @@ static inline ktime_t hrtimer_update_base(struct hrtimer_cpu_base *base)
515/* 515/*
516 * High resolution timer enabled ? 516 * High resolution timer enabled ?
517 */ 517 */
518static int hrtimer_hres_enabled __read_mostly = 1; 518static bool hrtimer_hres_enabled __read_mostly = true;
519unsigned int hrtimer_resolution __read_mostly = LOW_RES_NSEC; 519unsigned int hrtimer_resolution __read_mostly = LOW_RES_NSEC;
520EXPORT_SYMBOL_GPL(hrtimer_resolution); 520EXPORT_SYMBOL_GPL(hrtimer_resolution);
521 521
@@ -524,13 +524,7 @@ EXPORT_SYMBOL_GPL(hrtimer_resolution);
524 */ 524 */
525static int __init setup_hrtimer_hres(char *str) 525static int __init setup_hrtimer_hres(char *str)
526{ 526{
527 if (!strcmp(str, "off")) 527 return (kstrtobool(str, &hrtimer_hres_enabled) == 0);
528 hrtimer_hres_enabled = 0;
529 else if (!strcmp(str, "on"))
530 hrtimer_hres_enabled = 1;
531 else
532 return 0;
533 return 1;
534} 528}
535 529
536__setup("highres=", setup_hrtimer_hres); 530__setup("highres=", setup_hrtimer_hres);
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 969e6704c3c9..195fe7d2caad 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -486,20 +486,14 @@ void __init tick_nohz_init(void)
486/* 486/*
487 * NO HZ enabled ? 487 * NO HZ enabled ?
488 */ 488 */
489int tick_nohz_enabled __read_mostly = 1; 489bool tick_nohz_enabled __read_mostly = true;
490unsigned long tick_nohz_active __read_mostly; 490unsigned long tick_nohz_active __read_mostly;
491/* 491/*
492 * Enable / Disable tickless mode 492 * Enable / Disable tickless mode
493 */ 493 */
494static int __init setup_tick_nohz(char *str) 494static int __init setup_tick_nohz(char *str)
495{ 495{
496 if (!strcmp(str, "off")) 496 return (kstrtobool(str, &tick_nohz_enabled) == 0);