History

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.

Frederic Weisbecker committed 5 years ago

Commit 3f624311 parent a5183861 file · +0 −2Browse files

Unified · Split

kernel/time/tick-sched.c+0−2
@@ -1196,7 +1196,6 @@ unsigned long tick_nohz_get_idle_calls(void) · 1195 unmodified lines
11961196
11971197 static void tick_nohz_account_idle_ticks(struct tick_sched *ts)
11981198 {
1199−#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
12001199 unsigned long ticks;
12011200
12021201 if (vtime_accounting_enabled_this_cpu())
@@ -1212,7 +1211,6 @@ static void tick_nohz_account_idle_ticks(struct tick_sched *ts) · 9 unmodified lines
12121211 */
12131212 if (ticks && ticks < LONG_MAX)
12141213 account_idle_ticks(ticks);
1215−#endif
12161214 }
12171215
12181216 void tick_nohz_idle_restart_tick(void)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t