]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] (4/6) alpha fixes
authorAlexander Viro <viro@math.psu.edu>
Mon, 22 Apr 2002 05:58:43 +0000 (22:58 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 22 Apr 2002 05:58:43 +0000 (22:58 -0700)
 - (dumb) default_idle() provided (alpha)

arch/alpha/kernel/process.c

index 6c45b7a0d5b045fa064f3c18e6a1e3de077dd5dc..84871a5108e2774c7360381136455ff22feae1ce 100644 (file)
@@ -54,15 +54,21 @@ sys_sethae(unsigned long hae, unsigned long a1, unsigned long a2,
        return 0;
 }
 
+void default_idle(void)
+{
+       barrier();
+}
+
 void
 cpu_idle(void)
 {
        while (1) {
+               void (*idle)(void) = default_idle;
                /* FIXME -- EV6 and LCA45 know how to power down
                   the CPU.  */
 
                while (!need_resched())
-                       barrier();
+                       idle();
                schedule();
        }
 }