x86/apic: Only use default_wait_for_init_deassert()
authorDavid Rientjes <rientjes@google.com>
Wed, 5 Feb 2014 07:54:58 +0000 (23:54 -0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 9 Feb 2014 14:15:07 +0000 (15:15 +0100)
es7000_wait_for_init_deassert() is functionally equivalent to
default_wait_for_init_deassert(), so remove the duplicate code
and use only a single function.

Signed-off-by: David Rientjes <rientjes@google.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1402042353030.7839@chino.kir.corp.google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/es7000_32.c

index 1d2091a226bcac5b55b05225816bf1f374860c3c..2ef701381e2aeb47377d191df579c9f6e71b14b6 100644 (file)
@@ -521,7 +521,6 @@ static inline void default_wait_for_init_deassert(atomic_t *deassert)
 {
        while (!atomic_read(deassert))
                cpu_relax();
-       return;
 }
 
 extern void generic_bigsmp_probe(void);
index c55224731b2d7f0de89d6a37a00e71bd4d8792ec..d03d57e0a80654745a1119fb471eda24eb2d80c7 100644 (file)
@@ -394,12 +394,6 @@ static void es7000_enable_apic_mode(void)
                WARN(1, "Command failed, status = %x\n", mip_status);
 }
 
-static void es7000_wait_for_init_deassert(atomic_t *deassert)
-{
-       while (!atomic_read(deassert))
-               cpu_relax();
-}
-
 static unsigned int es7000_get_apic_id(unsigned long x)
 {
        return (x >> 24) & 0xFF;
@@ -722,7 +716,7 @@ static struct apic __refdata apic_es7000 = {
        .trampoline_phys_low            = 0x467,
        .trampoline_phys_high           = 0x469,
 
-       .wait_for_init_deassert         = es7000_wait_for_init_deassert,
+       .wait_for_init_deassert         = default_wait_for_init_deassert,
 
        /* Nothing to do for most platforms, since cleared by the INIT cycle: */
        .smp_callin_clear_local_apic    = NULL,