projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nmi_backtrace: generate one-line reports for idle cpus
[cascardo/linux.git]
/
arch
/
x86
/
include
/
asm
/
irqflags.h
diff --git
a/arch/x86/include/asm/irqflags.h
b/arch/x86/include/asm/irqflags.h
index
b77f5ed
..
ac7692d
100644
(file)
--- a/
arch/x86/include/asm/irqflags.h
+++ b/
arch/x86/include/asm/irqflags.h
@@
-4,6
+4,10
@@
#include <asm/processor-flags.h>
#ifndef __ASSEMBLY__
#include <asm/processor-flags.h>
#ifndef __ASSEMBLY__
+
+/* Provide __cpuidle; we can't safely include <linux/cpu.h> */
+#define __cpuidle __attribute__((__section__(".cpuidle.text")))
+
/*
* Interrupt control:
*/
/*
* Interrupt control:
*/
@@
-44,12
+48,12
@@
static inline void native_irq_enable(void)
asm volatile("sti": : :"memory");
}
asm volatile("sti": : :"memory");
}
-static inline void native_safe_halt(void)
+static inline
__cpuidle
void native_safe_halt(void)
{
asm volatile("sti; hlt": : :"memory");
}
{
asm volatile("sti; hlt": : :"memory");
}
-static inline void native_halt(void)
+static inline
__cpuidle
void native_halt(void)
{
asm volatile("hlt": : :"memory");
}
{
asm volatile("hlt": : :"memory");
}
@@
-86,7
+90,7
@@
static inline notrace void arch_local_irq_enable(void)
* Used in the idle loop; sti takes one instruction cycle
* to complete:
*/
* Used in the idle loop; sti takes one instruction cycle
* to complete:
*/
-static inline void arch_safe_halt(void)
+static inline
__cpuidle
void arch_safe_halt(void)
{
native_safe_halt();
}
{
native_safe_halt();
}
@@
-95,7
+99,7
@@
static inline void arch_safe_halt(void)
* Used when interrupts are already enabled or to
* shutdown the processor:
*/
* Used when interrupts are already enabled or to
* shutdown the processor:
*/
-static inline void halt(void)
+static inline
__cpuidle
void halt(void)
{
native_halt();
}
{
native_halt();
}