]> git.hungrycats.org Git - linux/commitdiff
Minor PPC changes - add sched_get/setaffinity, include tlbflush.h
authorPaul Mackerras <paulus@nanango.paulus.ozlabs.org>
Thu, 11 Apr 2002 08:06:07 +0000 (18:06 +1000)
committerPaul Mackerras <paulus@nanango.paulus.ozlabs.org>
Thu, 11 Apr 2002 08:06:07 +0000 (18:06 +1000)
and cacheflush.h in a few places where they are needed.

arch/ppc/kernel/misc.S
arch/ppc/kernel/prom_init.c
arch/ppc/kernel/signal.c
arch/ppc/kernel/smp.c
arch/ppc/platforms/chrp_setup.c
arch/ppc/platforms/pmac_smp.c
include/asm-ppc/unistd.h

index ad9f98f6e6a5a4d9c9e12c45fe7042939cc9ce35..672ad51510399961f98ebcf293dca72c7557aaed 100644 (file)
@@ -1290,6 +1290,8 @@ _GLOBAL(sys_call_table)
        .long sys_lremovexattr
        .long sys_fremovexattr  /* 220 */
        .long sys_futex
+       .long sys_sched_setaffinity
+       .long sys_sched_getaffinity
        .rept NR_syscalls-(.-sys_call_table)/4
                .long sys_ni_syscall
        .endr
index 96f43675dae8a6083bfa50bb73e8c971818a16b4..cde8b0ccb11d849f9d4c191494ba19f3a7ebd11e 100644 (file)
@@ -32,6 +32,7 @@
 #include <asm/btext.h>
 #include <asm/pci-bridge.h>
 #include <asm/open_pic.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_FB
 #include <asm/linux_logo.h>
index 5d283910a00924c8797ad7ed6e20339b33347fa2..9bb3dc2bb7b1ffac9bcf7d641b1a9e360c11e048 100644 (file)
@@ -34,6 +34,7 @@
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
+#include <asm/cacheflush.h>
 
 #define DEBUG_SIG 0
 
index 7763d17972df7f6a34231437833cc41509eb9f14..cd14604a7128997c5c9677599e1c68231d0caa8c 100644 (file)
@@ -38,6 +38,7 @@
 #include <asm/residual.h>
 #include <asm/time.h>
 #include <asm/thread_info.h>
+#include <asm/tlbflush.h>
 
 int smp_threads_ready;
 volatile int smp_commenced;
index 2c3f40d0b81d07562e31c3ceb011a2e9a6cff6a3..aa66d8854cbc6228a47412e535882edb669f92c2 100644 (file)
@@ -607,7 +607,7 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,
         * Print the banner, then scroll down so boot progress
         * can be printed.  -- Cort 
         */
-       if ( ppc_md.progress ) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);
+       if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);
 }
 
 void __chrp
index 8fccbd5bf31fbdf121414a3b170bb01b7f8261a2..0adbc8e263abe165b5e78bd8b71cdacbc69db153 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/unistd.h>
 #include <linux/init.h>
 #include <linux/spinlock.h>
+#include <linux/errno.h>
 
 #include <asm/ptrace.h>
 #include <asm/atomic.h>
@@ -47,6 +48,7 @@
 #include <asm/pmac_feature.h>
 #include <asm/time.h>
 #include <asm/open_pic.h>
+#include <asm/cacheflush.h>
 
 /*
  * Powersurge (old powermac SMP) support.
index 711d70ce328594d402c3d471c9b5b9d3655f5b3d..714890b8cdd2f617c01df9e948f142ff14a8699f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * BK Id: SCCS/s.unistd.h 1.11 10/18/01 17:29:53 trini
+ * BK Id: %F% %I% %G% %U% %#%
  */
 #ifndef _ASM_PPC_UNISTD_H_
 #define _ASM_PPC_UNISTD_H_
 #define __NR_lremovexattr      219
 #define __NR_fremovexattr      220
 #define __NR_futex             221
+#define __NR_sched_setaffinity 222
+#define __NR_sched_getaffinity 223
 
 #define __NR(n)        #n
 
@@ -432,7 +434,7 @@ static inline _syscall1(int,delete_module,const char *,name)
 
 static inline pid_t wait(int * wait_stat) 
 {
-       return waitpid(-1,wait_stat,0);
+       return waitpid(-1, wait_stat, 0);
 }
 
 #endif /* __KERNEL_SYSCALLS__ */