kernel_optimize_test/include/clocksource
Julien Thierry 7b77452ec5 arm64: use WFE for long delays
The current delay implementation uses the yield instruction, which is a
hint that it is beneficial to schedule another thread. As this is a hint,
it may be implemented as a NOP, causing all delays to be busy loops. This
is the case for many existing CPUs.

Taking advantage of the generic timer sending periodic events to all
cores, we can use WFE during delays to reduce power consumption. This is
beneficial only for delays longer than the period of the timer event
stream.

If timer event stream is not enabled, delays will behave as yield/busy
loops.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-10-13 18:56:15 +01:00
..
arm_arch_timer.h arm64: use WFE for long delays 2017-10-13 18:56:15 +01:00
metag_generic.h metag: Time keeping 2013-03-02 20:09:22 +00:00
pxa.h ARM: sa11x0/pxa: acquire timer rate from the clock rate 2016-10-18 09:12:36 +02:00
samsung_pwm.h pwm: Add new pwm-samsung driver 2013-08-12 21:53:22 +02:00
timer-sp804.h clocksource/drivers/sp804: Convert init function to return error 2016-06-28 10:19:30 +02:00