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.
Unified · Split
| @@ -1196,7 +1196,6 @@ unsigned long tick_nohz_get_idle_calls(void) · 1195 unmodified lines | |||
| 1196 | 1196 | ||
| 1197 | static void tick_nohz_account_idle_ticks(struct tick_sched *ts) | 1197 | static void tick_nohz_account_idle_ticks(struct tick_sched *ts) |
| 1198 | { | 1198 | { |
| 1199 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE | ||
| 1200 | unsigned long ticks; | 1199 | unsigned long ticks; |
| 1201 | 1200 | ||
| 1202 | if (vtime_accounting_enabled_this_cpu()) | 1201 | if (vtime_accounting_enabled_this_cpu()) |
| @@ -1212,7 +1211,6 @@ static void tick_nohz_account_idle_ticks(struct tick_sched *ts) · 9 unmodified lines | |||
| 1212 | */ | 1211 | */ |
| 1213 | if (ticks && ticks < LONG_MAX) | 1212 | if (ticks && ticks < LONG_MAX) |
| 1214 | account_idle_ticks(ticks); | 1213 | account_idle_ticks(ticks); |
| 1215 | #endif | ||
| 1216 | } | 1214 | } |
| 1217 | 1215 | ||
| 1218 | void tick_nohz_idle_restart_tick(void) | 1216 | void tick_nohz_idle_restart_tick(void) |