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.
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?
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.
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
Welcome to the forums, robin! :)
Originally Posted by robin48gx
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.