diff options
author | Christoph Hellwig <hch@lst.de> | 2009-06-18 00:38:26 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-18 00:38:26 -0400 |
commit | 4505ffda54b352a08eb08ebad62ac48725c41966 (patch) | |
tree | 74a8ac824840038dad7d10a6ab24b0f7864714e7 /arch/sh | |
parent | b7d3740ace895b85e802c618b2edfed1bba67d9e (diff) |
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>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/process_32.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/process_64.c | 7 | ||||
-rw-r--r-- | arch/sh/kernel/sys_sh.c | 2 | ||||
-rw-r--r-- | arch/sh/mm/fault_32.c | 4 |
4 files changed, 1 insertions, 14 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 9289ede29c7b..eea4cf9d44b6 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c | |||
@@ -119,8 +119,6 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
119 | pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, | 119 | pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, |
120 | ®s, 0, NULL, NULL); | 120 | ®s, 0, NULL, NULL); |
121 | 121 | ||
122 | trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn); | ||
123 | |||
124 | return pid; | 122 | return pid; |
125 | } | 123 | } |
126 | 124 | ||
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 96be839040f8..44c80770b8c2 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
@@ -323,7 +323,6 @@ ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *)) | |||
323 | int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | 323 | int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) |
324 | { | 324 | { |
325 | struct pt_regs regs; | 325 | struct pt_regs regs; |
326 | int pid; | ||
327 | 326 | ||
328 | memset(®s, 0, sizeof(regs)); | 327 | memset(®s, 0, sizeof(regs)); |
329 | regs.regs[2] = (unsigned long)arg; | 328 | regs.regs[2] = (unsigned long)arg; |
@@ -333,12 +332,8 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
333 | regs.sr = (1 << 30); | 332 | regs.sr = (1 << 30); |
334 | 333 | ||
335 | /* Ok, create the new process.. */ | 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 | ®s, 0, NULL, NULL); | 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 | /* |
diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c index e3a7e36639ef..90d00e47264d 100644 --- a/arch/sh/kernel/sys_sh.c +++ b/arch/sh/kernel/sys_sh.c | |||
@@ -88,8 +88,6 @@ asmlinkage int sys_ipc(uint call, int first, int second, | |||
88 | version = call >> 16; /* hack for backward compatibility */ | 88 | version = call >> 16; /* hack for backward compatibility */ |
89 | call &= 0xffff; | 89 | call &= 0xffff; |
90 | 90 | ||
91 | trace_mark(kernel_arch_ipc_call, "call %u first %d", call, first); | ||
92 | |||
93 | if (call <= SEMTIMEDOP) | 91 | if (call <= SEMTIMEDOP) |
94 | switch (call) { | 92 | switch (call) { |
95 | case SEMOP: | 93 | case SEMOP: |
diff --git a/arch/sh/mm/fault_32.c b/arch/sh/mm/fault_32.c index 31a33ebdef6f..2c50f80fc332 100644 --- a/arch/sh/mm/fault_32.c +++ b/arch/sh/mm/fault_32.c | |||
@@ -249,9 +249,6 @@ static inline int notify_page_fault(struct pt_regs *regs, int trap) | |||
249 | { | 249 | { |
250 | int ret = 0; | 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 | #ifdef CONFIG_KPROBES | 252 | #ifdef CONFIG_KPROBES |
256 | if (!user_mode(regs)) { | 253 | if (!user_mode(regs)) { |
257 | preempt_disable(); | 254 | preempt_disable(); |
@@ -327,6 +324,5 @@ asmlinkage int __kprobes __do_page_fault(struct pt_regs *regs, | |||
327 | 324 | ||
328 | ret = 0; | 325 | ret = 0; |
329 | out: | 326 | out: |
330 | trace_mark(kernel_arch_trap_exit, MARK_NOARGS); | ||
331 | return ret; | 327 | return ret; |
332 | } | 328 | } |