Hello Everybody, I want to ask following quesion: sleep_avg in 2.6 kernel incremented every time process go to sleep by the time in jiffies ,for which task is in switch mode,this is good measure of task being an intarctive if i try to introduce the same variable in linux 2.4 kernel,with last_run,is the time when process calls schedule,and if write the simple function, just like in 2.6 fun(struct task_struct *p) { sleep_time=jiffies - p->last_run; if(sleep_time) sleep_avg+=sleep_time } and if sleep_time become MAX_SLEEP_AVG , i just print the log declaring it interactive, but getting lot of error,like 'xtime' variable is not of appropriate typr even though no changes in 'xtime' variable moreover the main problem is when to call 'fun' I just called it ,every time before the state of process is TASK_RUNNING, Is it any problem in this approach? or if totally wrong then plz tell what exactly to do to just declare task as interactive __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/