diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 12:01:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 12:01:41 -0400 |
commit | 3a8580f82024e30b31c662aa49346adf7a3bcdb5 (patch) | |
tree | 7769a01f152b4081f4e4225e499082fd5c67b184 /arch/um/os-Linux/skas/mem.c | |
parent | 1d767cae4dbd4116fc3b2cc3251a20760f98339f (diff) | |
parent | 2ccf62b36097aa88e0ea152d6ef0c0ca2d3884e6 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
Pull UML updates from Richard Weinberger:
"Most changes are bug fixes and cleanups"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
um: missing checks of __put_user()/__get_user() return values
um: stub_rt_sigsuspend isn't needed these days anymore
um/x86: merge (and trim) 32- and 64-bit variants of ptrace.h
irq: Remove irq_chip->release()
um: Remove CONFIG_IRQ_RELEASE_METHOD
um: Remove usage of irq_chip->release()
um: Implement um_free_irq()
um: Fix __swp_type()
um: Implement a custom pte_same() function
um: Add BUG() to do_ops()'s error path
um: Remove unused variables
um: bury unused _TIF_RESTORE_SIGMASK
um: wrong sigmask saved in case of multiple sigframes
um: add TIF_NOTIFY_RESUME
um: ->restart_block.fn needs to be reset on sigreturn
Diffstat (limited to 'arch/um/os-Linux/skas/mem.c')
-rw-r--r-- | arch/um/os-Linux/skas/mem.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c index c0afff7af4bd..90b310d29179 100644 --- a/arch/um/os-Linux/skas/mem.c +++ b/arch/um/os-Linux/skas/mem.c | |||
@@ -48,10 +48,6 @@ __initcall(init_syscall_regs); | |||
48 | 48 | ||
49 | extern int proc_mm; | 49 | extern int proc_mm; |
50 | 50 | ||
51 | int single_count = 0; | ||
52 | int multi_count = 0; | ||
53 | int multi_op_count = 0; | ||
54 | |||
55 | static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) | 51 | static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) |
56 | { | 52 | { |
57 | int n, i; | 53 | int n, i; |
@@ -64,8 +60,6 @@ static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) | |||
64 | /* FIXME: Need to look up userspace_pid by cpu */ | 60 | /* FIXME: Need to look up userspace_pid by cpu */ |
65 | pid = userspace_pid[0]; | 61 | pid = userspace_pid[0]; |
66 | 62 | ||
67 | multi_count++; | ||
68 | |||
69 | n = ptrace_setregs(pid, syscall_regs); | 63 | n = ptrace_setregs(pid, syscall_regs); |
70 | if (n < 0) { | 64 | if (n < 0) { |
71 | printk(UM_KERN_ERR "Registers - \n"); | 65 | printk(UM_KERN_ERR "Registers - \n"); |
@@ -126,9 +120,6 @@ long run_syscall_stub(struct mm_id * mm_idp, int syscall, | |||
126 | { | 120 | { |
127 | unsigned long *stack = check_init_stack(mm_idp, *addr); | 121 | unsigned long *stack = check_init_stack(mm_idp, *addr); |
128 | 122 | ||
129 | if (done && *addr == NULL) | ||
130 | single_count++; | ||
131 | |||
132 | *stack += sizeof(long); | 123 | *stack += sizeof(long); |
133 | stack += *stack / sizeof(long); | 124 | stack += *stack / sizeof(long); |
134 | 125 | ||
@@ -141,7 +132,6 @@ long run_syscall_stub(struct mm_id * mm_idp, int syscall, | |||
141 | *stack++ = args[5]; | 132 | *stack++ = args[5]; |
142 | *stack++ = expected; | 133 | *stack++ = expected; |
143 | *stack = 0; | 134 | *stack = 0; |
144 | multi_op_count++; | ||
145 | 135 | ||
146 | if (!done && ((((unsigned long) stack) & ~UM_KERN_PAGE_MASK) < | 136 | if (!done && ((((unsigned long) stack) & ~UM_KERN_PAGE_MASK) < |
147 | UM_KERN_PAGE_SIZE - 10 * sizeof(long))) { | 137 | UM_KERN_PAGE_SIZE - 10 * sizeof(long))) { |