Skip to contentSkip to conversation

schedule() and mipsel processor

DISCUSSION fpga dsp 3 participants 3 messages Jun 28, 2003 – Jun 30, 2003 MIPS

lore
Share & tools
lore

fpga dsp

author
#0 lore raw

Hi all,

I may ask a stupid question here but I have problem of calling any functions such as interruptible_sleep_on_timeout, sleep_on ... in a timer handler, the kernel just crash straight away in the function schedule(). Now I go and do a diff between kern/sched.c on i686 source and mipsel source. clearly , they are different. So the question is from kernel programming point of view, the bottom-half of interrupt handler is still considered interrupt handler? I don't see any platform dependent code in the scheduler at all. So why a mips scheduler is different from intel scheduler ?

Many thanks

Duy Do

---------------------------------
Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.

#1 lore raw
Quoted 1 line · fpga dsp

I may ask a stupid question here but I have problem of calling any functions such as interruptible_sleep_on_timeout, sleep_on ... in a timer handler, the kernel just crash straight away in the function schedule(). Now I go and do a diff between kern/sched.c on i686 source and mipsel source. clearly , they are different. So the question is from kernel programming point of view, the bottom-half of interrupt handler is still considered interrupt handler? I don't see any platform dependent code in the scheduler at all. So why a mips scheduler is different from intel scheduler ?

Bs. There was no need to change kernel/sched.c at all so you're probably simply diffing the wrong versions.

Ralf

#2 lore raw
In reply to fpga dsp
Quoted 3 lines · fpga dsp

Hi all,

I may ask a stupid question here but I have problem of calling any functions such as interruptible_sleep_on_timeout, sleep_on ... in a timer handler, the kernel just crash straight away in the function schedule(). Now I go and do a diff between kern/sched.c on i686 source and mipsel source. clearly , they are different. So the question is from kernel programming point of view, the bottom-half of interrupt handler is still considered interrupt handler?

Correct. You can't call those sleep functions from timer function.

Jun