The patch titled i386/kernel/smp.c: don't use set_irq_regs() has been added to the -mm tree. Its filename is i386-kernel-smpc-dont-use-set_irq_regs.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: i386/kernel/smp.c: don't use set_irq_regs() From: Oleg Nesterov <oleg@xxxxxxxxxx> We don't need to setup _irq_regs in smp_xxx_interrupt (except apic timer). These handlers run with irqs disabled and do not call functions which need "struct pt_regs". Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/i386/kernel/smp.c | 6 ------ 1 file changed, 6 deletions(-) diff -puN arch/i386/kernel/smp.c~i386-kernel-smpc-dont-use-set_irq_regs arch/i386/kernel/smp.c --- a/arch/i386/kernel/smp.c~i386-kernel-smpc-dont-use-set_irq_regs +++ a/arch/i386/kernel/smp.c @@ -321,7 +321,6 @@ static inline void leave_mm (unsigned lo fastcall void smp_invalidate_interrupt(struct pt_regs *regs) { - struct pt_regs *old_regs = set_irq_regs(regs); unsigned long cpu; cpu = get_cpu(); @@ -352,7 +351,6 @@ fastcall void smp_invalidate_interrupt(s smp_mb__after_clear_bit(); out: put_cpu_no_resched(); - set_irq_regs(old_regs); } static void flush_tlb_others(cpumask_t cpumask, struct mm_struct *mm, @@ -607,14 +605,11 @@ void smp_send_stop(void) */ fastcall void smp_reschedule_interrupt(struct pt_regs *regs) { - struct pt_regs *old_regs = set_irq_regs(regs); ack_APIC_irq(); - set_irq_regs(old_regs); } fastcall void smp_call_function_interrupt(struct pt_regs *regs) { - struct pt_regs *old_regs = set_irq_regs(regs); void (*func) (void *info) = call_data->func; void *info = call_data->info; int wait = call_data->wait; @@ -637,7 +632,6 @@ fastcall void smp_call_function_interrup mb(); atomic_inc(&call_data->finished); } - set_irq_regs(old_regs); } /* _ Patches currently in -mm which might be from oleg@xxxxxxxxxx are i386-kernel-smpc-dont-use-set_irq_regs.patch taskstats_exit_alloc-optimize-simplify.patch taskstats-cleanup-do_exit-path.patch taskstats-cleanup-signal-stats-allocation.patch taskstats-factor-out-reply-assembling.patch taskstats-use-nla_reserve-for-reply-assembling.patch taskstats-cleanup-reply-assembling.patch doc-atomic_add_unless-doesnt-imply-mb-on-failure.patch tty-signal-tty-locking.patch do_task_stat-dont-take-tty_mutex.patch do_acct_process-dont-take-tty_mutex.patch trivial-make-set_special_pids-static.patch sys_unshare-remove-a-broken-clone_sighand-code.patch sys_setpgid-eliminate-unnecessary-do_each_task_pidpidtype_pgid.patch session_of_pgrp-kill-unnecessary-do_each_task_pidpidtype_pgid.patch pidhash-temporary-debug-checks.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html