소스 검색

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>
Christoph Hellwig 16 년 전
부모
커밋
4505ffda54
4개의 변경된 파일1개의 추가작업 그리고 14개의 파일을 삭제
  1. 0 2
      arch/sh/kernel/process_32.c
  2. 1 6
      arch/sh/kernel/process_64.c
  3. 0 2
      arch/sh/kernel/sys_sh.c
  4. 0 4
      arch/sh/mm/fault_32.c

+ 0 - 2
arch/sh/kernel/process_32.c

@@ -119,8 +119,6 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
 	pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
 	pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
 		      &regs, 0, NULL, NULL);
 		      &regs, 0, NULL, NULL);
 
 
-	trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn);
-
 	return pid;
 	return pid;
 }
 }
 
 

+ 1 - 6
arch/sh/kernel/process_64.c

@@ -323,7 +323,6 @@ ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *))
 int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
 int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
 {
 {
 	struct pt_regs regs;
 	struct pt_regs regs;
-	int pid;
 
 
 	memset(&regs, 0, sizeof(regs));
 	memset(&regs, 0, sizeof(regs));
 	regs.regs[2] = (unsigned long)arg;
 	regs.regs[2] = (unsigned long)arg;
@@ -333,12 +332,8 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
 	regs.sr = (1 << 30);
 	regs.sr = (1 << 30);
 
 
 	/* Ok, create the new process.. */
 	/* Ok, create the new process.. */
-	pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
+	return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
 		      &regs, 0, NULL, NULL);
 		      &regs, 0, NULL, NULL);
-
-	trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn);
-
-	return pid;
 }
 }
 
 
 /*
 /*

+ 0 - 2
arch/sh/kernel/sys_sh.c

@@ -88,8 +88,6 @@ asmlinkage int sys_ipc(uint call, int first, int second,
 	version = call >> 16; /* hack for backward compatibility */
 	version = call >> 16; /* hack for backward compatibility */
 	call &= 0xffff;
 	call &= 0xffff;
 
 
-	trace_mark(kernel_arch_ipc_call, "call %u first %d", call, first);
-
 	if (call <= SEMTIMEDOP)
 	if (call <= SEMTIMEDOP)
 		switch (call) {
 		switch (call) {
 		case SEMOP:
 		case SEMOP:

+ 0 - 4
arch/sh/mm/fault_32.c

@@ -249,9 +249,6 @@ static inline int notify_page_fault(struct pt_regs *regs, int trap)
 {
 {
 	int ret = 0;
 	int ret = 0;
 
 
-	trace_mark(kernel_arch_trap_entry, "trap_id %d ip #p%ld",
-		   trap >> 5, instruction_pointer(regs));
-
 #ifdef CONFIG_KPROBES
 #ifdef CONFIG_KPROBES
 	if (!user_mode(regs)) {
 	if (!user_mode(regs)) {
 		preempt_disable();
 		preempt_disable();
@@ -327,6 +324,5 @@ asmlinkage int __kprobes __do_page_fault(struct pt_regs *regs,
 
 
 	ret = 0;
 	ret = 0;
 out:
 out:
-	trace_mark(kernel_arch_trap_exit, MARK_NOARGS);
 	return ret;
 	return ret;
 }
 }