x86/percpu, sched/fair: Avoid local_clock()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 27 Feb 2019 09:27:58 +0000 (10:27 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 17 Jun 2019 10:43:43 +0000 (12:43 +0200)
commit8dc2d993cf1aea578d947e34ea2d5c6ffd1644e4
treed6eaa5e880f797ca01c677175df65031a90ca032
parent602447f95461469e20c81254c1c08be23a46fe53
x86/percpu, sched/fair: Avoid local_clock()

Nadav reported that code-gen changed because of the this_cpu_*()
constraints, avoid this for select_idle_cpu() because that runs with
preemption (and IRQs) disabled anyway.

Reported-by: Nadav Amit <nadav.amit@gmail.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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c