Commit d0f140e0 authored by Michal Simek's avatar Michal Simek

microblaze: Do not trace cpu_relax function

IRQsoff tracer requires to protect cpu_idle function
to get correct timing report.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 6f34b08f
...@@ -76,8 +76,11 @@ __setup("hlt", hlt_setup); ...@@ -76,8 +76,11 @@ __setup("hlt", hlt_setup);
void default_idle(void) void default_idle(void)
{ {
if (likely(hlt_counter)) { if (likely(hlt_counter)) {
while (!need_resched()) local_irq_disable();
cpu_relax(); stop_critical_timings();
cpu_relax();
start_critical_timings();
local_irq_enable();
} else { } else {
clear_thread_flag(TIF_POLLING_NRFLAG); clear_thread_flag(TIF_POLLING_NRFLAG);
smp_mb__after_clear_bit(); smp_mb__after_clear_bit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment