diff options
Diffstat (limited to 'arch/mips/kernel')
| -rw-r--r-- | arch/mips/kernel/genrtc.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/i8259.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/irixioctl.c | 5 | ||||
| -rw-r--r-- | arch/mips/kernel/irixsig.c | 17 | ||||
| -rw-r--r-- | arch/mips/kernel/r2300_fpu.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/r2300_switch.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/r4k_fpu.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/r4k_switch.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/r6000_fpu.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/scall32-o32.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-64.S | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/syscall.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/sysirix.c | 3 |
13 files changed, 16 insertions, 29 deletions
diff --git a/arch/mips/kernel/genrtc.c b/arch/mips/kernel/genrtc.c index 288bf51ad4ec..71416e7bbbaa 100644 --- a/arch/mips/kernel/genrtc.c +++ b/arch/mips/kernel/genrtc.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | #include <asm/rtc.h> | 14 | #include <asm/rtc.h> |
| 15 | #include <asm/time.h> | 15 | #include <asm/time.h> |
| 16 | 16 | ||
| 17 | static spinlock_t mips_rtc_lock = SPIN_LOCK_UNLOCKED; | 17 | static DEFINE_SPINLOCK(mips_rtc_lock); |
| 18 | 18 | ||
| 19 | unsigned int get_rtc_time(struct rtc_time *time) | 19 | unsigned int get_rtc_time(struct rtc_time *time) |
| 20 | { | 20 | { |
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c index 7eec7568bfea..447759201d1d 100644 --- a/arch/mips/kernel/i8259.c +++ b/arch/mips/kernel/i8259.c | |||
| @@ -31,7 +31,7 @@ void disable_8259A_irq(unsigned int irq); | |||
| 31 | * moves to arch independent land | 31 | * moves to arch independent land |
| 32 | */ | 32 | */ |
| 33 | 33 | ||
| 34 | spinlock_t i8259A_lock = SPIN_LOCK_UNLOCKED; | 34 | spinlock_t DEFINE_SPINLOCK(i8259A_lock); |
| 35 | 35 | ||
| 36 | static void end_8259A_irq (unsigned int irq) | 36 | static void end_8259A_irq (unsigned int irq) |
| 37 | { | 37 | { |
diff --git a/arch/mips/kernel/irixioctl.c b/arch/mips/kernel/irixioctl.c index 4cd3d38a22c2..3cdc22346f4c 100644 --- a/arch/mips/kernel/irixioctl.c +++ b/arch/mips/kernel/irixioctl.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/syscalls.h> | 14 | #include <linux/syscalls.h> |
| 15 | #include <linux/tty.h> | 15 | #include <linux/tty.h> |
| 16 | #include <linux/file.h> | 16 | #include <linux/file.h> |
| 17 | #include <linux/rcupdate.h> | ||
| 17 | 18 | ||
| 18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
| 19 | #include <asm/ioctl.h> | 20 | #include <asm/ioctl.h> |
| @@ -33,7 +34,7 @@ static struct tty_struct *get_tty(int fd) | |||
| 33 | struct file *filp; | 34 | struct file *filp; |
| 34 | struct tty_struct *ttyp = NULL; | 35 | struct tty_struct *ttyp = NULL; |
| 35 | 36 | ||
| 36 | spin_lock(¤t->files->file_lock); | 37 | rcu_read_lock(); |
| 37 | filp = fcheck(fd); | 38 | filp = fcheck(fd); |
| 38 | if(filp && filp->private_data) { | 39 | if(filp && filp->private_data) { |
| 39 | ttyp = (struct tty_struct *) filp->private_data; | 40 | ttyp = (struct tty_struct *) filp->private_data; |
| @@ -41,7 +42,7 @@ static struct tty_struct *get_tty(int fd) | |||
| 41 | if(ttyp->magic != TTY_MAGIC) | 42 | if(ttyp->magic != TTY_MAGIC) |
| 42 | ttyp =NULL; | 43 | ttyp =NULL; |
| 43 | } | 44 | } |
| 44 | spin_unlock(¤t->files->file_lock); | 45 | rcu_read_unlock(); |
| 45 | return ttyp; | 46 | return ttyp; |
| 46 | } | 47 | } |
| 47 | 48 | ||
diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c index 4c114ae21793..eff89322ba50 100644 --- a/arch/mips/kernel/irixsig.c +++ b/arch/mips/kernel/irixsig.c | |||
| @@ -440,18 +440,6 @@ struct irix5_siginfo { | |||
| 440 | } stuff; | 440 | } stuff; |
| 441 | }; | 441 | }; |
| 442 | 442 | ||
| 443 | static inline unsigned long timespectojiffies(struct timespec *value) | ||
| 444 | { | ||
| 445 | unsigned long sec = (unsigned) value->tv_sec; | ||
| 446 | long nsec = value->tv_nsec; | ||
| 447 | |||
| 448 | if (sec > (LONG_MAX / HZ)) | ||
| 449 | return LONG_MAX; | ||
| 450 | nsec += 1000000000L / HZ - 1; | ||
| 451 | nsec /= 1000000000L / HZ; | ||
| 452 | return HZ * sec + nsec; | ||
| 453 | } | ||
| 454 | |||
| 455 | asmlinkage int irix_sigpoll_sys(unsigned long *set, struct irix5_siginfo *info, | 443 | asmlinkage int irix_sigpoll_sys(unsigned long *set, struct irix5_siginfo *info, |
| 456 | struct timespec *tp) | 444 | struct timespec *tp) |
| 457 | { | 445 | { |
| @@ -489,14 +477,13 @@ asmlinkage int irix_sigpoll_sys(unsigned long *set, struct irix5_siginfo *info, | |||
| 489 | error = -EINVAL; | 477 | error = -EINVAL; |
| 490 | goto out; | 478 | goto out; |
| 491 | } | 479 | } |
| 492 | expire = timespectojiffies(tp)+(tp->tv_sec||tp->tv_nsec); | 480 | expire = timespec_to_jiffies(tp) + (tp->tv_sec||tp->tv_nsec); |
| 493 | } | 481 | } |
| 494 | 482 | ||
| 495 | while(1) { | 483 | while(1) { |
| 496 | long tmp = 0; | 484 | long tmp = 0; |
| 497 | 485 | ||
| 498 | current->state = TASK_INTERRUPTIBLE; | 486 | expire = schedule_timeout_interruptible(expire); |
| 499 | expire = schedule_timeout(expire); | ||
| 500 | 487 | ||
| 501 | for (i=0; i<=4; i++) | 488 | for (i=0; i<=4; i++) |
| 502 | tmp |= (current->pending.signal.sig[i] & kset.sig[i]); | 489 | tmp |= (current->pending.signal.sig[i] & kset.sig[i]); |
diff --git a/arch/mips/kernel/r2300_fpu.S b/arch/mips/kernel/r2300_fpu.S index f83c31f720c4..ac68e68339db 100644 --- a/arch/mips/kernel/r2300_fpu.S +++ b/arch/mips/kernel/r2300_fpu.S | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | #include <asm/errno.h> | 15 | #include <asm/errno.h> |
| 16 | #include <asm/fpregdef.h> | 16 | #include <asm/fpregdef.h> |
| 17 | #include <asm/mipsregs.h> | 17 | #include <asm/mipsregs.h> |
| 18 | #include <asm/offset.h> | 18 | #include <asm/asm-offsets.h> |
| 19 | #include <asm/regdef.h> | 19 | #include <asm/regdef.h> |
| 20 | 20 | ||
| 21 | #define EX(a,b) \ | 21 | #define EX(a,b) \ |
diff --git a/arch/mips/kernel/r2300_switch.S b/arch/mips/kernel/r2300_switch.S index f10019640ee9..0d9c4a32a9c2 100644 --- a/arch/mips/kernel/r2300_switch.S +++ b/arch/mips/kernel/r2300_switch.S | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | #include <asm/cachectl.h> | 15 | #include <asm/cachectl.h> |
| 16 | #include <asm/fpregdef.h> | 16 | #include <asm/fpregdef.h> |
| 17 | #include <asm/mipsregs.h> | 17 | #include <asm/mipsregs.h> |
| 18 | #include <asm/offset.h> | 18 | #include <asm/asm-offsets.h> |
| 19 | #include <asm/page.h> | 19 | #include <asm/page.h> |
| 20 | #include <asm/regdef.h> | 20 | #include <asm/regdef.h> |
| 21 | #include <asm/stackframe.h> | 21 | #include <asm/stackframe.h> |
diff --git a/arch/mips/kernel/r4k_fpu.S b/arch/mips/kernel/r4k_fpu.S index aba665bcb386..1a14c6b18829 100644 --- a/arch/mips/kernel/r4k_fpu.S +++ b/arch/mips/kernel/r4k_fpu.S | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #include <asm/errno.h> | 17 | #include <asm/errno.h> |
| 18 | #include <asm/fpregdef.h> | 18 | #include <asm/fpregdef.h> |
| 19 | #include <asm/mipsregs.h> | 19 | #include <asm/mipsregs.h> |
| 20 | #include <asm/offset.h> | 20 | #include <asm/asm-offsets.h> |
| 21 | #include <asm/regdef.h> | 21 | #include <asm/regdef.h> |
| 22 | 22 | ||
| 23 | .macro EX insn, reg, src | 23 | .macro EX insn, reg, src |
diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S index e02b7722ccb8..d2afbd19a9c8 100644 --- a/arch/mips/kernel/r4k_switch.S +++ b/arch/mips/kernel/r4k_switch.S | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | #include <asm/cachectl.h> | 15 | #include <asm/cachectl.h> |
| 16 | #include <asm/fpregdef.h> | 16 | #include <asm/fpregdef.h> |
| 17 | #include <asm/mipsregs.h> | 17 | #include <asm/mipsregs.h> |
| 18 | #include <asm/offset.h> | 18 | #include <asm/asm-offsets.h> |
| 19 | #include <asm/page.h> | 19 | #include <asm/page.h> |
| 20 | #include <asm/pgtable-bits.h> | 20 | #include <asm/pgtable-bits.h> |
| 21 | #include <asm/regdef.h> | 21 | #include <asm/regdef.h> |
diff --git a/arch/mips/kernel/r6000_fpu.S b/arch/mips/kernel/r6000_fpu.S index d8d3b13fe57f..43cda53f5af6 100644 --- a/arch/mips/kernel/r6000_fpu.S +++ b/arch/mips/kernel/r6000_fpu.S | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <asm/asm.h> | 13 | #include <asm/asm.h> |
| 14 | #include <asm/fpregdef.h> | 14 | #include <asm/fpregdef.h> |
| 15 | #include <asm/mipsregs.h> | 15 | #include <asm/mipsregs.h> |
| 16 | #include <asm/offset.h> | 16 | #include <asm/asm-offsets.h> |
| 17 | #include <asm/regdef.h> | 17 | #include <asm/regdef.h> |
| 18 | 18 | ||
| 19 | .set noreorder | 19 | .set noreorder |
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 344f2e29eb61..17b5030fb6ea 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | #include <asm/thread_info.h> | 19 | #include <asm/thread_info.h> |
| 20 | #include <asm/unistd.h> | 20 | #include <asm/unistd.h> |
| 21 | #include <asm/war.h> | 21 | #include <asm/war.h> |
| 22 | #include <asm/offset.h> | 22 | #include <asm/asm-offsets.h> |
| 23 | 23 | ||
| 24 | /* Highest syscall used of any syscall flavour */ | 24 | /* Highest syscall used of any syscall flavour */ |
| 25 | #define MAX_SYSCALL_NO __NR_O32_Linux + __NR_O32_Linux_syscalls | 25 | #define MAX_SYSCALL_NO __NR_O32_Linux + __NR_O32_Linux_syscalls |
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index 32efb888160a..ffb22a2068bf 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | #include <asm/mipsregs.h> | 14 | #include <asm/mipsregs.h> |
| 15 | #include <asm/regdef.h> | 15 | #include <asm/regdef.h> |
| 16 | #include <asm/stackframe.h> | 16 | #include <asm/stackframe.h> |
| 17 | #include <asm/offset.h> | 17 | #include <asm/asm-offsets.h> |
| 18 | #include <asm/sysmips.h> | 18 | #include <asm/sysmips.h> |
| 19 | #include <asm/thread_info.h> | 19 | #include <asm/thread_info.h> |
| 20 | #include <asm/unistd.h> | 20 | #include <asm/unistd.h> |
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index ae2a1312d4ef..21e3e13a4b44 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | #include <asm/cachectl.h> | 31 | #include <asm/cachectl.h> |
| 32 | #include <asm/cacheflush.h> | 32 | #include <asm/cacheflush.h> |
| 33 | #include <asm/ipc.h> | 33 | #include <asm/ipc.h> |
| 34 | #include <asm/offset.h> | 34 | #include <asm/asm-offsets.h> |
| 35 | #include <asm/signal.h> | 35 | #include <asm/signal.h> |
| 36 | #include <asm/sim.h> | 36 | #include <asm/sim.h> |
| 37 | #include <asm/shmparam.h> | 37 | #include <asm/shmparam.h> |
diff --git a/arch/mips/kernel/sysirix.c b/arch/mips/kernel/sysirix.c index b46595462717..4de155699c4f 100644 --- a/arch/mips/kernel/sysirix.c +++ b/arch/mips/kernel/sysirix.c | |||
| @@ -1032,8 +1032,7 @@ bad: | |||
| 1032 | 1032 | ||
| 1033 | asmlinkage int irix_sginap(int ticks) | 1033 | asmlinkage int irix_sginap(int ticks) |
| 1034 | { | 1034 | { |
| 1035 | current->state = TASK_INTERRUPTIBLE; | 1035 | schedule_timeout_interruptible(ticks); |
| 1036 | schedule_timeout(ticks); | ||
| 1037 | return 0; | 1036 | return 0; |
| 1038 | } | 1037 | } |
| 1039 | 1038 | ||
