diff options
| -rw-r--r-- | arch/powerpc/kernel/rtasd.c | 9 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/hotplug-cpu.c | 10 | ||||
| -rw-r--r-- | arch/s390/kernel/time.c | 8 | ||||
| -rw-r--r-- | arch/s390/kernel/topology.c | 7 | ||||
| -rw-r--r-- | arch/x86/kernel/aperture_64.c | 12 | ||||
| -rw-r--r-- | include/linux/tick.h | 2 | ||||
| -rw-r--r-- | kernel/time/hrtimer.c | 10 | ||||
| -rw-r--r-- | kernel/time/tick-sched.c | 10 |
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; | |||
| 49 | static unsigned int event_scan; | 49 | static unsigned int event_scan; |
| 50 | static unsigned int rtas_event_scan_rate; | 50 | static unsigned int rtas_event_scan_rate; |
| 51 | 51 | ||
| 52 | static int full_rtas_msgs = 0; | 52 | static bool full_rtas_msgs; |
| 53 | 53 | ||
| 54 | /* Stop logging to nvram after first fatal error */ | 54 | /* Stop logging to nvram after first fatal error */ |
| 55 | static int logging_enabled; /* Until we initialize everything, | 55 | static int logging_enabled; /* Until we initialize everything, |
| @@ -592,11 +592,6 @@ __setup("surveillance=", surveillance_setup); | |||
| 592 | 592 | ||
| 593 | static int __init rtasmsgs_setup(char *str) | 593 | static 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 | ||
| 48 | static enum cpu_state_vals default_offline_state = CPU_STATE_OFFLINE; | 48 | static enum cpu_state_vals default_offline_state = CPU_STATE_OFFLINE; |
| 49 | 49 | ||
| 50 | static int cede_offline_enabled __read_mostly = 1; | 50 | static 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 | */ |
| 55 | static int __init setup_cede_offline(char *str) | 55 | static 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 | */ |
| 1435 | static int stp_online; | 1435 | static bool stp_online; |
| 1436 | static struct stp_sstpi stp_info; | 1436 | static struct stp_sstpi stp_info; |
| 1437 | static void *stp_page; | 1437 | static void *stp_page; |
| 1438 | 1438 | ||
| @@ -1443,11 +1443,7 @@ static struct timer_list stp_timer; | |||
| 1443 | 1443 | ||
| 1444 | static int __init early_parse_stp(char *p) | 1444 | static 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 | } |
| 1452 | early_param("stp", early_parse_stp); | 1448 | early_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); | |||
| 37 | static void topology_work_fn(struct work_struct *work); | 37 | static void topology_work_fn(struct work_struct *work); |
| 38 | static struct sysinfo_15_1_x *tl_info; | 38 | static struct sysinfo_15_1_x *tl_info; |
| 39 | 39 | ||
| 40 | static int topology_enabled = 1; | 40 | static bool topology_enabled = true; |
| 41 | static DECLARE_WORK(topology_work, topology_work_fn); | 41 | static 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 | ||
| 445 | static int __init early_parse_topology(char *p) | 445 | static 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 | } |
| 452 | early_param("topology", early_parse_topology); | 449 | early_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 | ||
| 230 | static int gart_fix_e820 __initdata = 1; | 230 | static bool gart_fix_e820 __initdata = true; |
| 231 | 231 | ||
| 232 | static int __init parse_gart_mem(char *p) | 232 | static 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 | } |
| 244 | early_param("gart_fix_e820", parse_gart_mem); | 236 | early_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 |
| 114 | extern int tick_nohz_enabled; | 114 | extern bool tick_nohz_enabled; |
| 115 | extern int tick_nohz_tick_stopped(void); | 115 | extern int tick_nohz_tick_stopped(void); |
| 116 | extern void tick_nohz_idle_enter(void); | 116 | extern void tick_nohz_idle_enter(void); |
| 117 | extern void tick_nohz_idle_exit(void); | 117 | extern 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 | */ |
| 518 | static int hrtimer_hres_enabled __read_mostly = 1; | 518 | static bool hrtimer_hres_enabled __read_mostly = true; |
| 519 | unsigned int hrtimer_resolution __read_mostly = LOW_RES_NSEC; | 519 | unsigned int hrtimer_resolution __read_mostly = LOW_RES_NSEC; |
| 520 | EXPORT_SYMBOL_GPL(hrtimer_resolution); | 520 | EXPORT_SYMBOL_GPL(hrtimer_resolution); |
| 521 | 521 | ||
| @@ -524,13 +524,7 @@ EXPORT_SYMBOL_GPL(hrtimer_resolution); | |||
| 524 | */ | 524 | */ |
| 525 | static int __init setup_hrtimer_hres(char *str) | 525 | static 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 | */ |
| 489 | int tick_nohz_enabled __read_mostly = 1; | 489 | bool tick_nohz_enabled __read_mostly = true; |
| 490 | unsigned long tick_nohz_active __read_mostly; | 490 | unsigned long tick_nohz_active __read_mostly; |
| 491 | /* | 491 | /* |
| 492 | * Enable / Disable tickless mode | 492 | * Enable / Disable tickless mode |
| 493 | */ | 493 | */ |
| 494 | static int __init setup_tick_nohz(char *str) | 494 | static int __init setup_tick_nohz(char *str) |
| 495 | { | 495 | { |
| 496 | if (!strcmp(str, "off")) | 496 | return (kstrtobool(str, &tick_nohz_enabled) == 0); |
