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
/
kernel
/
process.c
diff --git
a/arch/x86/kernel/process.c
b/arch/x86/kernel/process.c
index
4002b47
..
28cea78
100644
(file)
--- a/
arch/x86/kernel/process.c
+++ b/
arch/x86/kernel/process.c
@@
-302,7
+302,7
@@
void arch_cpu_idle(void)
/*
* We use this if we don't have any better idle routine..
*/
/*
* We use this if we don't have any better idle routine..
*/
-void default_idle(void)
+void
__cpuidle
default_idle(void)
{
trace_cpu_idle_rcuidle(1, smp_processor_id());
safe_halt();
{
trace_cpu_idle_rcuidle(1, smp_processor_id());
safe_halt();
@@
-417,7
+417,7
@@
static int prefer_mwait_c1_over_halt(const struct cpuinfo_x86 *c)
* with interrupts enabled and no flags, which is backwards compatible with the
* original MWAIT implementation.
*/
* with interrupts enabled and no flags, which is backwards compatible with the
* original MWAIT implementation.
*/
-static void mwait_idle(void)
+static
__cpuidle
void mwait_idle(void)
{
if (!current_set_polling_and_test()) {
trace_cpu_idle_rcuidle(1, smp_processor_id());
{
if (!current_set_polling_and_test()) {
trace_cpu_idle_rcuidle(1, smp_processor_id());