projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f34b08
)
microblaze: Do not trace cpu_relax function
author
Michal Simek
<monstr@monstr.eu>
Thu, 10 Jun 2010 14:02:32 +0000
(16:02 +0200)
committer
Michal Simek
<monstr@monstr.eu>
Wed, 4 Aug 2010 08:22:36 +0000
(10:22 +0200)
IRQsoff tracer requires to protect cpu_idle function
to get correct timing report.
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/kernel/process.c
b/arch/microblaze/kernel/process.c
index 09bed44dfcd35a5f2300405f9e208982e7208798..ba7c4b16ed35e863074e737b00a8149cb3c42439 100644
(file)
--- a/
arch/microblaze/kernel/process.c
+++ b/
arch/microblaze/kernel/process.c
@@
-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();