Skip to contentSkip to conversation

sh: Remove long unused mid_sched macro

PATCH Applied Andreas Bombe 2 participants 2 messages Mar 20, 2010 – Mar 23, 2010 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: Remove long unused mid_sched macro

interruptible_sleep_on() is referenced for use in the mid_sched macro which is not used anywhere. Remove reference and macro as well as the comment which appears to belong with them.

---

At least the mid_sched name does not appear anywhere else. It doesn't even appear to have been in use at any time during the kernel's git history.

 arch/sh/kernel/process_64.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
arch/sh/kernel/process_64.c +0 -7
index c90957a..c0d40f6 100644
@@ -504,13 +504,6 @@ out:
 	return error;
 }
 
-/*
- * These bracket the sleeping functions..
- */
-extern void interruptible_sleep_on(wait_queue_head_t *q);
-
-#define mid_sched	((unsigned long) interruptible_sleep_on)
-
 #ifdef CONFIG_FRAME_POINTER
 static int in_sh64_switch_to(unsigned long pc)
 {
Signature · 1 line
1.7.0.2
Applied
#1 lore raw
Quoted 11 lines · Andreas Bombe

interruptible_sleep_on() is referenced for use in the mid_sched macro which is not used anywhere. Remove reference and macro as well as the comment which appears to belong with them.

---

At least the mid_sched name does not appear anywhere else. It doesn't even appear to have been in use at any time during the kernel's git history.

It definitely predates git, but the sh64 bits haven't had that much work done on them since the BK days, so it's expected that there are still some remnants.

Applied, thanks.