Skip to contentSkip to conversation

janitor: sched_timeout() sets curr_state (cosa)

PATCH Applied Randy.Dunlap 2 participants 2 messages Oct 6, 2003 – Oct 7, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 janitor: sched_timeout() sets curr_state (cosa)

Hi,
Please apply to 2.6.0-test6-current.

--
~Randy

From: Alexey Dobriyan <[email protected]>

 linux-260-test6-kj1-rddunlap/drivers/net/wan/cosa.c |    2 --
 1 files changed, 2 deletions(-)
drivers/net/wan/cosa.c renamed from drivers/net/wan/cosa.c~net_wan_taskrun +0 -2
diff -puN drivers/net/wan/cosa.c~net_wan_taskrun drivers/net/wan/cosa.c
@@ -519,7 +519,6 @@ static int cosa_probe(int base, int irq,
 		current->state = TASK_INTERRUPTIBLE;
 		cosa_putstatus(cosa, SR_TX_INT_ENA);
 		schedule_timeout(30);
-		current->state = TASK_RUNNING;
 		irq = probe_irq_off(irqs);
 		/* Disable all IRQs from the card */
 		cosa_putstatus(cosa, 0);
@@ -1532,7 +1531,6 @@ static int cosa_reset_and_read_id(struct
 #ifdef MODULE
 	current->state = TASK_INTERRUPTIBLE;
 	schedule_timeout(HZ/2);
-	current->state = TASK_RUNNING;
 #else
 	udelay(5*100000);
 #endif

_

#1 lore raw
Quoted 4 lines · On Sun, 5 Oct 2003 20:40:27 -0700 "Randy.Dunlap" <[email protected]> wrote:

From: Alexey Dobriyan <[email protected]>

 linux-260-test6-kj1-rddunlap/drivers/net/wan/cosa.c |    2 --
 1 files changed, 2 deletions(-)

Applied, thanks Randy.