mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[PATCH] hrtimer: switch itimers to hrtimer
switch itimers to a hrtimers-based implementation Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
df78488de7
commit
2ff678b8da
7 changed files with 65 additions and 68 deletions
|
|
@ -105,6 +105,7 @@ extern unsigned long nr_iowait(void);
|
|||
#include <linux/param.h>
|
||||
#include <linux/resource.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/hrtimer.h>
|
||||
|
||||
#include <asm/processor.h>
|
||||
|
||||
|
|
@ -398,8 +399,8 @@ struct signal_struct {
|
|||
struct list_head posix_timers;
|
||||
|
||||
/* ITIMER_REAL timer for the process */
|
||||
struct timer_list real_timer;
|
||||
unsigned long it_real_value, it_real_incr;
|
||||
struct hrtimer real_timer;
|
||||
ktime_t it_real_incr;
|
||||
|
||||
/* ITIMER_PROF and ITIMER_VIRTUAL timers for the process */
|
||||
cputime_t it_prof_expires, it_virt_expires;
|
||||
|
|
|
|||
|
|
@ -96,6 +96,6 @@ static inline void add_timer(struct timer_list *timer)
|
|||
|
||||
extern void init_timers(void);
|
||||
extern void run_local_timers(void);
|
||||
extern void it_real_fn(unsigned long);
|
||||
extern int it_real_fn(void *);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue