ia64/xen-unstable

changeset 13976:e253a63651bf

linux: user user_mode_vm() in place of user_mode() where necessary.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Thu Feb 15 13:51:25 2007 +0000 (2007-02-15)
parents 24f16bae44b0
children beab19d957de
files linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c	Thu Feb 15 13:49:04 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c	Thu Feb 15 13:51:25 2007 +0000
     1.3 @@ -708,7 +708,7 @@ irqreturn_t timer_interrupt(int irq, voi
     1.4  	if (delta_cpu > 0) {
     1.5  		do_div(delta_cpu, NS_PER_TICK);
     1.6  		per_cpu(processed_system_time, cpu) += delta_cpu * NS_PER_TICK;
     1.7 -		if (user_mode(regs))
     1.8 +		if (user_mode_vm(regs))
     1.9  			account_user_time(current, (cputime_t)delta_cpu);
    1.10  		else
    1.11  			account_system_time(current, HARDIRQ_OFFSET,
    1.12 @@ -722,7 +722,7 @@ irqreturn_t timer_interrupt(int irq, voi
    1.13  	/* Local timer processing (see update_process_times()). */
    1.14  	run_local_timers();
    1.15  	if (rcu_pending(cpu))
    1.16 -		rcu_check_callbacks(cpu, user_mode(regs));
    1.17 +		rcu_check_callbacks(cpu, user_mode_vm(regs));
    1.18  	scheduler_tick();
    1.19  	run_posix_cpu_timers(current);
    1.20  	profile_tick(CPU_PROFILING, regs);