sched/core: Remove double update_max_interval() call on CPU startup
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 23 Sep 2019 09:30:17 +0000 (10:30 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Sep 2019 15:42:32 +0000 (17:42 +0200)
commit9fc41acc89e58262c917b4be89ef00a87485804f
tree8bc1826a34717ce758d283ffa26c779aeea49ba1
parenta49b4f4012ef233143c5f7ce44f97851e54d5ef9
sched/core: Remove double update_max_interval() call on CPU startup

update_max_interval() is called in both CPUHP_AP_SCHED_STARTING's startup
and teardown callbacks, but it turns out it's also called at the end of
the startup callback of CPUHP_AP_ACTIVE (which is further down the
startup sequence).

There's no point in repeating this interval update in the startup sequence
since the CPU will remain online until it goes down the teardown path.

Remove the redundant call in sched_cpu_activate() (CPUHP_AP_ACTIVE).

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dietmar.eggemann@arm.com
Cc: juri.lelli@redhat.com
Cc: vincent.guittot@linaro.org
Link: https://lkml.kernel.org/r/20190923093017.11755-1-valentin.schneider@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c