Skip to contentSkip to conversation

Simple module question

DISCUSSION Karsten Jeppesen 2 participants 2 messages Feb 19, 2004 – Feb 20, 2004

lore
Share & tools
lore
#0 lore raw

Aren't they all......

I am doing some heavy work in a write function.
But I have a poll wait loop (waiting for flash program end) where a lot of time is wasted.
How do I tell the scheduler that I would like t surrender the CPU for others to use?
I tried calling scheduler(), but that only crashed the kernel. What is the correct way?

Sincerely,
Karsten

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Look at the "Linux Device Driver" By A.Rubini & J.Corbett, there are a lot of suggestions and examples.

Gianfranco

---- Original Message -----
From: "Karsten Jeppesen" <[email protected]>
To: <[email protected]>
Sent: Thursday, February 19, 2004 9:28 PM
Subject: Simple module question

Quoted 12 lines

Aren't they all......

I am doing some heavy work in a write function.
But I have a poll wait loop (waiting for flash program end) where a lot of time is wasted.
How do I tell the scheduler that I would like t surrender the CPU for others to use?
I tried calling scheduler(), but that only crashed the kernel. What is the correct way?

Quoted 6 lines

Sincerely,
Karsten

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/