]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: apply recent changes to merged code
authorPaul Mackerras <paulus@samba.org>
Mon, 31 Oct 2005 02:57:01 +0000 (13:57 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 31 Oct 2005 02:57:01 +0000 (13:57 +1100)
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/of_device.c
arch/powerpc/kernel/ptrace.c
arch/powerpc/kernel/ptrace32.c
arch/powerpc/kernel/time.c
arch/powerpc/lib/locks.c
arch/powerpc/mm/imalloc.c

index 766718814515a4bf1b07cf5aa38856ab572f59e0..7065e40e2f42ac8661fb372c371911aa17c76a23 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>
+#include <linux/slab.h>
+
 #include <asm/errno.h>
 #include <asm/of_device.h>
 
index 943425a9335486eed83a5337f33ddce49cba289f..568ea335d61626bfabb10d5421fada42f3c1d62e 100644 (file)
@@ -248,7 +248,7 @@ void ptrace_disable(struct task_struct *child)
        clear_single_step(child);
 }
 
-int sys_ptrace(long request, long pid, long addr, long data)
+long sys_ptrace(long request, long pid, long addr, long data)
 {
        struct task_struct *child;
        int ret = -EPERM;
index 544368277d7e53dfb145215f198892f263030c3a..91eb952e0293c63d40580f0b82cde0068a60b140 100644 (file)
@@ -40,8 +40,8 @@
  * in exit.c or in signal.c.
  */
 
-int compat_sys_ptrace(int request, int pid, unsigned long addr,
-                     unsigned long data)
+long compat_sys_ptrace(int request, int pid, unsigned long addr,
+                      unsigned long data)
 {
        struct task_struct *child;
        int ret = -EPERM;
index ed5c38fb146ca5916afb86c46574bb0739d74270..23436b6c18811a4ae1e2aa56b763d519aa890bfd 100644 (file)
 #include <asm/iSeries/HvCallXm.h>
 #endif
 
-u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
-
-EXPORT_SYMBOL(jiffies_64);
-
 /* keep track of when we need to update the rtc */
 time_t last_rtc_update;
 extern int piranha_simulator;
index 4b8c5ad5e7dcecfa48baf0359b6b9939e8ce101d..3794715b2972b1e69a03cf33cd5a95ab634e5ebe 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/spinlock.h>
 #include <linux/module.h>
 #include <linux/stringify.h>
+#include <linux/smp.h>
 
 /* waiting for a spinlock... */
 #if defined(CONFIG_PPC_SPLPAR) || defined(CONFIG_PPC_ISERIES)
index c65b87b927567cd1a3dd9c30275a713006c34661..f4ca29cf53649b6c35941b1c942c9cecac7c6439 100644 (file)
@@ -300,12 +300,7 @@ void im_free(void * addr)
        for (p = &imlist ; (tmp = *p) ; p = &tmp->next) {
                if (tmp->addr == addr) {
                        *p = tmp->next;
-
-                       /* XXX: do we need the lock? */
-                       spin_lock(&init_mm.page_table_lock);
                        unmap_vm_area(tmp);
-                       spin_unlock(&init_mm.page_table_lock);
-
                        kfree(tmp);
                        up(&imlist_sem);
                        return;