diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-02-26 20:21:17 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-03-04 14:02:30 -0500 |
commit | 821d313c257b9b04c3c82f0b303ee259c00dc620 (patch) | |
tree | 4b76bd2e0fa335a097142be2a52e15319d1f452c /arch/mips/kernel/linux32.c | |
parent | 08274cefdc9efe709540be5d8e7c002346592d6d (diff) |
[MIPS] Replace sys32_timer_create with the generic compat_sys_timer_create.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/linux32.c')
-rw-r--r-- | arch/mips/kernel/linux32.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index b701ecb47cbd..30d433f14f93 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
@@ -544,37 +544,6 @@ asmlinkage long sys32_sync_file_range(int fd, int __pad, | |||
544 | flags); | 544 | flags); |
545 | } | 545 | } |
546 | 546 | ||
547 | struct sigevent32 { | ||
548 | u32 sigev_value; | ||
549 | u32 sigev_signo; | ||
550 | u32 sigev_notify; | ||
551 | u32 payload[(64 / 4) - 3]; | ||
552 | }; | ||
553 | |||
554 | extern asmlinkage long | ||
555 | sys_timer_create(clockid_t which_clock, | ||
556 | struct sigevent __user *timer_event_spec, | ||
557 | timer_t __user * created_timer_id); | ||
558 | |||
559 | long | ||
560 | sys32_timer_create(u32 clock, struct sigevent32 __user *se32, timer_t __user *timer_id) | ||
561 | { | ||
562 | struct sigevent __user *p = NULL; | ||
563 | if (se32) { | ||
564 | struct sigevent se; | ||
565 | p = compat_alloc_user_space(sizeof(struct sigevent)); | ||
566 | memset(&se, 0, sizeof(struct sigevent)); | ||
567 | if (get_user(se.sigev_value.sival_int, &se32->sigev_value) || | ||
568 | __get_user(se.sigev_signo, &se32->sigev_signo) || | ||
569 | __get_user(se.sigev_notify, &se32->sigev_notify) || | ||
570 | __copy_from_user(&se._sigev_un._pad, &se32->payload, | ||
571 | sizeof(se32->payload)) || | ||
572 | copy_to_user(p, &se, sizeof(se))) | ||
573 | return -EFAULT; | ||
574 | } | ||
575 | return sys_timer_create(clock, p, timer_id); | ||
576 | } | ||
577 | |||
578 | save_static_function(sys32_clone); | 547 | save_static_function(sys32_clone); |
579 | __attribute_used__ noinline static int | 548 | __attribute_used__ noinline static int |
580 | _sys32_clone(nabi_no_regargs struct pt_regs regs) | 549 | _sys32_clone(nabi_no_regargs struct pt_regs regs) |