Skip to content

Commit 21a6ee1

Browse files
MiaoheLinIngo Molnar
authored andcommitted
sched: Remove duplicated tick_nohz_full_enabled() check
In sched_update_tick_dependency() there's two calls that check whether nohz_full is enabled: tick_nohz_full_cpu() does it implicitly, while there's also an explicit call to tick_nohz_full_enabled(). Remove the duplicated, open coded check. [ mingo: Amended the changelog. ] Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c1b7b8d commit 21a6ee1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernel/sched/sched.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,12 +1961,7 @@ extern int __init sched_tick_offload_init(void);
19611961
*/
19621962
static inline void sched_update_tick_dependency(struct rq *rq)
19631963
{
1964-
int cpu;
1965-
1966-
if (!tick_nohz_full_enabled())
1967-
return;
1968-
1969-
cpu = cpu_of(rq);
1964+
int cpu = cpu_of(rq);
19701965

19711966
if (!tick_nohz_full_cpu(cpu))
19721967
return;

0 commit comments

Comments
 (0)