Commit 3aedb7fc authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Thomas Gleixner

tick/sched: Remove useless oneshot ifdeffery

tick-sched.c is only built when CONFIG_TICK_ONESHOT=y, which is selected
only if CONFIG_NO_HZ_COMMON=y or CONFIG_HIGH_RES_TIMERS=y. Therefore
the related ifdeferry in this file is needless and can be removed.
Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240225225508.11587-4-frederic@kernel.org
parent 37263ba0
...@@ -43,7 +43,6 @@ struct tick_sched *tick_get_tick_sched(int cpu) ...@@ -43,7 +43,6 @@ struct tick_sched *tick_get_tick_sched(int cpu)
return &per_cpu(tick_cpu_sched, cpu); return &per_cpu(tick_cpu_sched, cpu);
} }
#if defined(CONFIG_NO_HZ_COMMON) || defined(CONFIG_HIGH_RES_TIMERS)
/* /*
* The time when the last jiffy update happened. Write access must hold * The time when the last jiffy update happened. Write access must hold
* jiffies_lock and jiffies_seq. tick_nohz_next_event() needs to get a * jiffies_lock and jiffies_seq. tick_nohz_next_event() needs to get a
...@@ -289,7 +288,6 @@ static enum hrtimer_restart tick_nohz_handler(struct hrtimer *timer) ...@@ -289,7 +288,6 @@ static enum hrtimer_restart tick_nohz_handler(struct hrtimer *timer)
return HRTIMER_RESTART; return HRTIMER_RESTART;
} }
#endif
#ifdef CONFIG_NO_HZ_FULL #ifdef CONFIG_NO_HZ_FULL
cpumask_var_t tick_nohz_full_mask; cpumask_var_t tick_nohz_full_mask;
...@@ -635,7 +633,7 @@ void __init tick_nohz_init(void) ...@@ -635,7 +633,7 @@ void __init tick_nohz_init(void)
pr_info("NO_HZ: Full dynticks CPUs: %*pbl.\n", pr_info("NO_HZ: Full dynticks CPUs: %*pbl.\n",
cpumask_pr_args(tick_nohz_full_mask)); cpumask_pr_args(tick_nohz_full_mask));
} }
#endif #endif /* #ifdef CONFIG_NO_HZ_FULL */
/* /*
* NOHZ - aka dynamic tick functionality * NOHZ - aka dynamic tick functionality
...@@ -1540,7 +1538,6 @@ void tick_irq_enter(void) ...@@ -1540,7 +1538,6 @@ void tick_irq_enter(void)
tick_nohz_irq_enter(); tick_nohz_irq_enter();
} }
#if defined CONFIG_NO_HZ_COMMON || defined CONFIG_HIGH_RES_TIMERS
static int sched_skew_tick; static int sched_skew_tick;
static int __init skew_tick(char *str) static int __init skew_tick(char *str)
...@@ -1605,7 +1602,6 @@ void tick_cancel_sched_timer(int cpu) ...@@ -1605,7 +1602,6 @@ void tick_cancel_sched_timer(int cpu)
ts->idle_calls = idle_calls; ts->idle_calls = idle_calls;
ts->idle_sleeps = idle_sleeps; ts->idle_sleeps = idle_sleeps;
} }
#endif /* CONFIG_NO_HZ_COMMON || CONFIG_HIGH_RES_TIMERS */
/* /*
* Async notification about clocksource changes * Async notification about clocksource changes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment