[PATCH] Replace local_save_flags+local_irq_disable with
authorFernando Luis Vázquez Cao <fernando@oss.ntt.co.jp>
Tue, 26 Sep 2006 08:52:33 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:33 +0000 (10:52 +0200)
commit2b94ab2fd55768030e177a6ec224dedd031ad06b
tree270ebf8207932190d2ec0b725c82dc8039b24fe7
parent52d522f53f137c7903db22f9196a48ad8658fb2b
[PATCH] Replace local_save_flags+local_irq_disable with

The combination of "local_save_flags" and "local_irq_disable" seems to be
equivalent to "local_irq_save" (see code snips below). Consequently, replace
occurrences of local_save_flags+local_irq_disable with local_irq_save.

* local_irq_save
#define raw_local_irq_save(flags) \
                do { (flags) = __raw_local_irq_save(); } while (0)

static inline unsigned long __raw_local_irq_save(void)
{
        unsigned long flags = __raw_local_save_flags();

        raw_local_irq_disable();

        return flags;
}

* local_save_flags
#define raw_local_save_flags(flags) \
                do { (flags) = __raw_local_save_flags(); } while (0)

Signed-off-by: Fernando Vazquez <fernando@intellilink.co.jp>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/apic.c
arch/x86_64/kernel/genapic_flat.c