forked from luck/tmp_suning_uos_patched
microblaze: Do not trace cpu_relax function
IRQsoff tracer requires to protect cpu_idle function to get correct timing report. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
6f34b08f58
commit
d0f140e03e
|
@ -76,8 +76,11 @@ __setup("hlt", hlt_setup);
|
|||
void default_idle(void)
|
||||
{
|
||||
if (likely(hlt_counter)) {
|
||||
while (!need_resched())
|
||||
cpu_relax();
|
||||
local_irq_disable();
|
||||
stop_critical_timings();
|
||||
cpu_relax();
|
||||
start_critical_timings();
|
||||
local_irq_enable();
|
||||
} else {
|
||||
clear_thread_flag(TIF_POLLING_NRFLAG);
|
||||
smp_mb__after_clear_bit();
|
||||
|
|
Loading…
Reference in New Issue
Block a user