Commit 4505ffda54b352a08eb08ebad62ac48725c41966
Committed by
Paul Mundt
1 parent
b7d3740ace
Exists in
master
and in
20 other branches
sh: remove stray markers.
arch/sh has a couple of stray markers without any users introduced in commit 3d58695edbfac785161bf282dc11fd42a483d6c9. Remove them in preparation of removing the markers in favour of the TRACE_EVENT macro (and also because we don't keep dead code around). Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Showing 4 changed files with 1 additions and 14 deletions Side-by-side Diff
arch/sh/kernel/process_32.c
arch/sh/kernel/process_64.c
... | ... | @@ -323,7 +323,6 @@ |
323 | 323 | int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) |
324 | 324 | { |
325 | 325 | struct pt_regs regs; |
326 | - int pid; | |
327 | 326 | |
328 | 327 | memset(®s, 0, sizeof(regs)); |
329 | 328 | regs.regs[2] = (unsigned long)arg; |
330 | 329 | |
... | ... | @@ -333,12 +332,8 @@ |
333 | 332 | regs.sr = (1 << 30); |
334 | 333 | |
335 | 334 | /* Ok, create the new process.. */ |
336 | - pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, | |
335 | + return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, | |
337 | 336 | ®s, 0, NULL, NULL); |
338 | - | |
339 | - trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn); | |
340 | - | |
341 | - return pid; | |
342 | 337 | } |
343 | 338 | |
344 | 339 | /* |
arch/sh/kernel/sys_sh.c
arch/sh/mm/fault_32.c
... | ... | @@ -249,9 +249,6 @@ |
249 | 249 | { |
250 | 250 | int ret = 0; |
251 | 251 | |
252 | - trace_mark(kernel_arch_trap_entry, "trap_id %d ip #p%ld", | |
253 | - trap >> 5, instruction_pointer(regs)); | |
254 | - | |
255 | 252 | #ifdef CONFIG_KPROBES |
256 | 253 | if (!user_mode(regs)) { |
257 | 254 | preempt_disable(); |
... | ... | @@ -327,7 +324,6 @@ |
327 | 324 | |
328 | 325 | ret = 0; |
329 | 326 | out: |
330 | - trace_mark(kernel_arch_trap_exit, MARK_NOARGS); | |
331 | 327 | return ret; |
332 | 328 | } |