Results 1 to 5 of 5
Hi, i'm a Linux kernel programming newbie.
However I'm involved in a project, in which I have to develop a new scheduling class for a new scheduling policy. This scheduling ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-25-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
Hrtimer
Hi, i'm a Linux kernel programming newbie.
However I'm involved in a project, in which I have to develop a new scheduling class for a new scheduling policy. This scheduling policy is based on a timer. So, I've implemented a timer mechanism that periodic fire a timer. However, I need to invoke the schedule() function within of the handler function of the timer. Can anybody help me, how can I invoke the schedule() function? I did that but I got some problems, namely the system crash.
I' using the Linux kernel version 2.6.24 and Ubuntu distro.
Regards
pbsousa
- 04-16-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,142
I take it that schedule() is your function? Also, which system timer function are you using, setitimer(), or sys_timer_create() to set your timer?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-16-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
hi Rubberman, many thanks but I´ve already solved the problem. However I'm using hrtimers and I don't need to invoke schedule() function because after an interrupt this function is automatically invoked.
- 11-11-2010 #4Just Joined!
- Join Date
- Nov 2010
- Posts
- 5
Have you solved this yet? I can pnly get HRTIMER_NORESTART calls
working so far.
There must be some way of re-triggering the timer, but all my efforts have met with a system crash so far
- 11-11-2010 #5forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Welcome to the forums, robin!

This thread is 20 months old and you have started your own thread regarding this matter so I'm going to lock this one to prevent any confusion for anyone that tries to help you with this. We usually lock any revived threads that are older than 6 to 12 months anyway. Hope you find the solution soon.oz




