diff options
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/cpu-bugs64.c | 4 | ||||
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 9 | ||||
-rw-r--r-- | arch/mips/kernel/rtlx.c | 4 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 2 | ||||
-rw-r--r-- | arch/mips/kernel/time.c | 1 |
5 files changed, 13 insertions, 7 deletions
diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index ac04f0adc408..6648fde20b96 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2003, 2004 Maciej W. Rozycki | 2 | * Copyright (C) 2003, 2004, 2007 Maciej W. Rozycki |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
@@ -29,7 +29,7 @@ static inline void align_mod(const int align, const int mod) | |||
29 | ".endr\n\t" | 29 | ".endr\n\t" |
30 | ".set pop" | 30 | ".set pop" |
31 | : | 31 | : |
32 | : "rn" (align), "rn" (mod)); | 32 | : GCC_IMM_ASM (align), GCC_IMM_ASM (mod)); |
33 | } | 33 | } |
34 | 34 | ||
35 | static inline void mult_sh_align_mod(long *v1, long *v2, long *w, | 35 | static inline void mult_sh_align_mod(long *v1, long *v2, long *w, |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 06448a9656dc..3e004161ebd5 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -199,7 +199,14 @@ static inline void check_wait(void) | |||
199 | if ((c->processor_id & 0xff) <= 0x64) | 199 | if ((c->processor_id & 0xff) <= 0x64) |
200 | break; | 200 | break; |
201 | 201 | ||
202 | cpu_wait = r4k_wait; | 202 | /* |
203 | * Another rev is incremeting c0_count at a reduced clock | ||
204 | * rate while in WAIT mode. So we basically have the choice | ||
205 | * between using the cp0 timer as clocksource or avoiding | ||
206 | * the WAIT instruction. Until more details are known, | ||
207 | * disable the use of WAIT for 20Kc entirely. | ||
208 | cpu_wait = r4k_wait; | ||
209 | */ | ||
203 | break; | 210 | break; |
204 | case CPU_RM9000: | 211 | case CPU_RM9000: |
205 | if ((c->processor_id & 0x00ff) >= 0x40) | 212 | if ((c->processor_id & 0x00ff) >= 0x40) |
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index aab89e97abb5..1ba00c15505b 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c | |||
@@ -56,8 +56,6 @@ static struct chan_waitqueues { | |||
56 | struct mutex mutex; | 56 | struct mutex mutex; |
57 | } channel_wqs[RTLX_CHANNELS]; | 57 | } channel_wqs[RTLX_CHANNELS]; |
58 | 58 | ||
59 | static struct irqaction irq; | ||
60 | static int irq_num; | ||
61 | static struct vpe_notifications notify; | 59 | static struct vpe_notifications notify; |
62 | static int sp_stopping = 0; | 60 | static int sp_stopping = 0; |
63 | 61 | ||
@@ -111,7 +109,7 @@ static void __used dump_rtlx(void) | |||
111 | static int rtlx_init(struct rtlx_info *rtlxi) | 109 | static int rtlx_init(struct rtlx_info *rtlxi) |
112 | { | 110 | { |
113 | if (rtlxi->id != RTLX_ID) { | 111 | if (rtlxi->id != RTLX_ID) { |
114 | printk(KERN_ERR "no valid RTLX id at 0x%p 0x%x\n", rtlxi, rtlxi->id); | 112 | printk(KERN_ERR "no valid RTLX id at 0x%p 0x%lx\n", rtlxi, rtlxi->id); |
115 | return -ENOEXEC; | 113 | return -ENOEXEC; |
116 | } | 114 | } |
117 | 115 | ||
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 53d7a977193c..118be24224f2 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -375,7 +375,7 @@ EXPORT(sysn32_call_table) | |||
375 | PTR sys_mkdirat | 375 | PTR sys_mkdirat |
376 | PTR sys_mknodat | 376 | PTR sys_mknodat |
377 | PTR sys_fchownat | 377 | PTR sys_fchownat |
378 | PTR sys_futimesat /* 6255 */ | 378 | PTR compat_sys_futimesat /* 6255 */ |
379 | PTR sys_newfstatat | 379 | PTR sys_newfstatat |
380 | PTR sys_unlinkat | 380 | PTR sys_unlinkat |
381 | PTR sys_renameat | 381 | PTR sys_renameat |
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index d48d1d5bea0a..9a5596bf8571 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/sched.h> | 17 | #include <linux/sched.h> |
18 | #include <linux/param.h> | 18 | #include <linux/param.h> |
19 | #include <linux/profile.h> | ||
19 | #include <linux/time.h> | 20 | #include <linux/time.h> |
20 | #include <linux/timex.h> | 21 | #include <linux/timex.h> |
21 | #include <linux/smp.h> | 22 | #include <linux/smp.h> |