diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-10-08 14:15:08 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-10-08 14:15:08 +0000 |
commit | 99a37802489a7c6b560c633aa521eadf3113eb8d (patch) | |
tree | c69d953008d9c3451e20af5db8ff041d951679a5 /xen/common/timer.c | |
parent | e61d0849f055b18777283ac90d6199dc75e446f5 (diff) | |
download | xen-99a37802489a7c6b560c633aa521eadf3113eb8d.tar.gz xen-99a37802489a7c6b560c633aa521eadf3113eb8d.tar.bz2 xen-99a37802489a7c6b560c633aa521eadf3113eb8d.zip |
bitkeeper revision 1.496 (3f841becdre1gQrbAv8C5pF-O_M1fg)
sched.h, pgalloc.h, timer.c, schedule.c, domain.c, smp.c:
Various cleanups. Nothing major.
Diffstat (limited to 'xen/common/timer.c')
-rw-r--r-- | xen/common/timer.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/xen/common/timer.c b/xen/common/timer.c index ebc7f8d3b0..bdcda32d89 100644 --- a/xen/common/timer.c +++ b/xen/common/timer.c @@ -506,37 +506,6 @@ static void update_wall_time(unsigned long ticks) } } -static inline void do_process_times(struct task_struct *p, - unsigned long user, unsigned long system) -{ -} - - -void update_one_process(struct task_struct *p, unsigned long user, - unsigned long system, int cpu) -{ - do_process_times(p, user, system); -} - -/* - * Called from the timer interrupt handler to charge one tick to the current - * process. user_tick is 1 if the tick is user time, 0 for system. - */ -void update_process_times(int user_tick) -{ - struct task_struct *p = current; - int cpu = smp_processor_id(), system = user_tick ^ 1; - - update_one_process(p, user_tick, system, cpu); - - if ( --p->counter <= 0 ) - { - p->counter = 0; - set_bit(_HYP_EVENT_NEED_RESCHED, &p->hyp_events); - } -} - - /* jiffies at the most recent update of wall time */ unsigned long wall_jiffies; @@ -580,12 +549,8 @@ void timer_bh(void) void do_timer(struct pt_regs *regs) { - (*(unsigned long *)&jiffies)++; - if ( !using_apic_timer ) - update_process_times(user_mode(regs)); - mark_bh(TIMER_BH); if (TQ_ACTIVE(tq_timer)) mark_bh(TQUEUE_BH); |