[tip:,timers/nohz] tick/nohz: Remove superflous check for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
diff mbox series

Message ID 162091184904.29796.4999933388579094630.tip-bot2@tip-bot2
State In Next
Commit 3f624314b3f7c580aa5844a8930befd71e2a287c
Headers show
  • [tip:,timers/nohz] tick/nohz: Remove superflous check for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
Related show

Commit Message

tip-bot2 for Vincent Donnefort May 13, 2021, 1:17 p.m. UTC
The following commit has been merged into the timers/nohz branch of tip:

Commit-ID:     3f624314b3f7c580aa5844a8930befd71e2a287c
Gitweb:        https://git.kernel.org/tip/3f624314b3f7c580aa5844a8930befd71e2a287c
Author:        Frederic Weisbecker <frederic@kernel.org>
AuthorDate:    Thu, 13 May 2021 01:29:17 +02:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Thu, 13 May 2021 14:21:21 +02:00

tick/nohz: Remove superflous check for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE

The vtime_accounting_enabled_this_cpu() early check already makes what
follows as dead code in the case of CONFIG_VIRT_CPU_ACCOUNTING_NATIVE.
No need to keep the ifdeferry around.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210512232924.150322-4-frederic@kernel.org
 kernel/time/tick-sched.c | 2 --
 1 file changed, 2 deletions(-)

diff mbox series

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 05c1ce1..1afa759 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -1196,7 +1196,6 @@  unsigned long tick_nohz_get_idle_calls(void)
 static void tick_nohz_account_idle_ticks(struct tick_sched *ts)
 	unsigned long ticks;
 	if (vtime_accounting_enabled_this_cpu())
@@ -1212,7 +1211,6 @@  static void tick_nohz_account_idle_ticks(struct tick_sched *ts)
 	if (ticks && ticks < LONG_MAX)
 void tick_nohz_idle_restart_tick(void)