diff options
Diffstat (limited to 'arch/alpha/kernel/process.c')
-rw-r--r-- | arch/alpha/kernel/process.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index eb20c3afff5..a8682612abc 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -43,21 +43,17 @@ | |||
43 | #include "proto.h" | 43 | #include "proto.h" |
44 | #include "pci_impl.h" | 44 | #include "pci_impl.h" |
45 | 45 | ||
46 | void default_idle(void) | ||
47 | { | ||
48 | barrier(); | ||
49 | } | ||
50 | |||
51 | void | 46 | void |
52 | cpu_idle(void) | 47 | cpu_idle(void) |
53 | { | 48 | { |
49 | set_thread_flag(TIF_POLLING_NRFLAG); | ||
50 | |||
54 | while (1) { | 51 | while (1) { |
55 | void (*idle)(void) = default_idle; | ||
56 | /* FIXME -- EV6 and LCA45 know how to power down | 52 | /* FIXME -- EV6 and LCA45 know how to power down |
57 | the CPU. */ | 53 | the CPU. */ |
58 | 54 | ||
59 | while (!need_resched()) | 55 | while (!need_resched()) |
60 | idle(); | 56 | cpu_relax(); |
61 | schedule(); | 57 | schedule(); |
62 | } | 58 | } |
63 | } | 59 | } |