diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
commit | c4366889dda8110247be59ca41fddb82951a8c26 (patch) | |
tree | 705c1a996bed8fd48ce94ff33ec9fd00f9b94875 /arch/frv/kernel | |
parent | db2fb9db5735cc532fd4fc55e94b9a3c3750378e (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Conflicts:
drivers/cpufreq/cpufreq.c
Diffstat (limited to 'arch/frv/kernel')
-rw-r--r-- | arch/frv/kernel/futex.c | 6 | ||||
-rw-r--r-- | arch/frv/kernel/pm.c | 6 | ||||
-rw-r--r-- | arch/frv/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/frv/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/frv/kernel/vmlinux.lds.S | 8 |
5 files changed, 9 insertions, 15 deletions
diff --git a/arch/frv/kernel/futex.c b/arch/frv/kernel/futex.c index eae874a970c6..14f64b054c7e 100644 --- a/arch/frv/kernel/futex.c +++ b/arch/frv/kernel/futex.c | |||
@@ -10,9 +10,9 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/futex.h> | 12 | #include <linux/futex.h> |
13 | #include <linux/uaccess.h> | ||
13 | #include <asm/futex.h> | 14 | #include <asm/futex.h> |
14 | #include <asm/errno.h> | 15 | #include <asm/errno.h> |
15 | #include <asm/uaccess.h> | ||
16 | 16 | ||
17 | /* | 17 | /* |
18 | * the various futex operations; MMU fault checking is ignored under no-MMU | 18 | * the various futex operations; MMU fault checking is ignored under no-MMU |
@@ -200,7 +200,7 @@ int futex_atomic_op_inuser(int encoded_op, int __user *uaddr) | |||
200 | if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int))) | 200 | if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int))) |
201 | return -EFAULT; | 201 | return -EFAULT; |
202 | 202 | ||
203 | inc_preempt_count(); | 203 | pagefault_disable(); |
204 | 204 | ||
205 | switch (op) { | 205 | switch (op) { |
206 | case FUTEX_OP_SET: | 206 | case FUTEX_OP_SET: |
@@ -223,7 +223,7 @@ int futex_atomic_op_inuser(int encoded_op, int __user *uaddr) | |||
223 | break; | 223 | break; |
224 | } | 224 | } |
225 | 225 | ||
226 | dec_preempt_count(); | 226 | pagefault_enable(); |
227 | 227 | ||
228 | if (!ret) { | 228 | if (!ret) { |
229 | switch (cmp) { | 229 | switch (cmp) { |
diff --git a/arch/frv/kernel/pm.c b/arch/frv/kernel/pm.c index c1d9fc8f1a85..ee677ced7b68 100644 --- a/arch/frv/kernel/pm.c +++ b/arch/frv/kernel/pm.c | |||
@@ -223,7 +223,7 @@ static int cmode_procctl(ctl_table *ctl, int write, struct file *filp, | |||
223 | 223 | ||
224 | static int cmode_sysctl(ctl_table *table, int __user *name, int nlen, | 224 | static int cmode_sysctl(ctl_table *table, int __user *name, int nlen, |
225 | void __user *oldval, size_t __user *oldlenp, | 225 | void __user *oldval, size_t __user *oldlenp, |
226 | void __user *newval, size_t newlen, void **context) | 226 | void __user *newval, size_t newlen) |
227 | { | 227 | { |
228 | if (oldval && oldlenp) { | 228 | if (oldval && oldlenp) { |
229 | size_t oldlen; | 229 | size_t oldlen; |
@@ -326,7 +326,7 @@ static int p0_procctl(ctl_table *ctl, int write, struct file *filp, | |||
326 | 326 | ||
327 | static int p0_sysctl(ctl_table *table, int __user *name, int nlen, | 327 | static int p0_sysctl(ctl_table *table, int __user *name, int nlen, |
328 | void __user *oldval, size_t __user *oldlenp, | 328 | void __user *oldval, size_t __user *oldlenp, |
329 | void __user *newval, size_t newlen, void **context) | 329 | void __user *newval, size_t newlen) |
330 | { | 330 | { |
331 | if (oldval && oldlenp) { | 331 | if (oldval && oldlenp) { |
332 | size_t oldlen; | 332 | size_t oldlen; |
@@ -370,7 +370,7 @@ static int cm_procctl(ctl_table *ctl, int write, struct file *filp, | |||
370 | 370 | ||
371 | static int cm_sysctl(ctl_table *table, int __user *name, int nlen, | 371 | static int cm_sysctl(ctl_table *table, int __user *name, int nlen, |
372 | void __user *oldval, size_t __user *oldlenp, | 372 | void __user *oldval, size_t __user *oldlenp, |
373 | void __user *newval, size_t newlen, void **context) | 373 | void __user *newval, size_t newlen) |
374 | { | 374 | { |
375 | if (oldval && oldlenp) { | 375 | if (oldval && oldlenp) { |
376 | size_t oldlen; | 376 | size_t oldlen; |
diff --git a/arch/frv/kernel/setup.c b/arch/frv/kernel/setup.c index a8c61dac1cee..1a5eb6c301c9 100644 --- a/arch/frv/kernel/setup.c +++ b/arch/frv/kernel/setup.c | |||
@@ -947,7 +947,7 @@ static void __init setup_linux_memory(void) | |||
947 | if (LOADER_TYPE && INITRD_START) { | 947 | if (LOADER_TYPE && INITRD_START) { |
948 | if (INITRD_START + INITRD_SIZE <= (low_top_pfn << PAGE_SHIFT)) { | 948 | if (INITRD_START + INITRD_SIZE <= (low_top_pfn << PAGE_SHIFT)) { |
949 | reserve_bootmem(INITRD_START, INITRD_SIZE); | 949 | reserve_bootmem(INITRD_START, INITRD_SIZE); |
950 | initrd_start = INITRD_START ? INITRD_START + PAGE_OFFSET : 0; | 950 | initrd_start = INITRD_START + PAGE_OFFSET; |
951 | initrd_end = initrd_start + INITRD_SIZE; | 951 | initrd_end = initrd_start + INITRD_SIZE; |
952 | } | 952 | } |
953 | else { | 953 | else { |
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index b8a5882b8625..85baeae9666a 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/ptrace.h> | 21 | #include <linux/ptrace.h> |
22 | #include <linux/unistd.h> | 22 | #include <linux/unistd.h> |
23 | #include <linux/personality.h> | 23 | #include <linux/personality.h> |
24 | #include <linux/suspend.h> | 24 | #include <linux/freezer.h> |
25 | #include <asm/ucontext.h> | 25 | #include <asm/ucontext.h> |
26 | #include <asm/uaccess.h> | 26 | #include <asm/uaccess.h> |
27 | #include <asm/cacheflush.h> | 27 | #include <asm/cacheflush.h> |
diff --git a/arch/frv/kernel/vmlinux.lds.S b/arch/frv/kernel/vmlinux.lds.S index f474534ba78a..9c1fb12367fa 100644 --- a/arch/frv/kernel/vmlinux.lds.S +++ b/arch/frv/kernel/vmlinux.lds.S | |||
@@ -44,13 +44,7 @@ SECTIONS | |||
44 | 44 | ||
45 | __initcall_start = .; | 45 | __initcall_start = .; |
46 | .initcall.init : { | 46 | .initcall.init : { |
47 | *(.initcall1.init) | 47 | INITCALLS |
48 | *(.initcall2.init) | ||
49 | *(.initcall3.init) | ||
50 | *(.initcall4.init) | ||
51 | *(.initcall5.init) | ||
52 | *(.initcall6.init) | ||
53 | *(.initcall7.init) | ||
54 | } | 48 | } |
55 | __initcall_end = .; | 49 | __initcall_end = .; |
56 | __con_initcall_start = .; | 50 | __con_initcall_start = .; |