lkml.org 
[lkml]   [2018]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/10] sparc: Switch to generic local_softirq_pending() implementation
    Date
    Benefit from the generic softirq mask implementation that rely on per-CPU
    mutators instead of working with raw operators on top of this_cpu_ptr().

    Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Michael Ellerman <mpe@ellerman.id.au>
    Cc: James E.J. Bottomley <jejb@parisc-linux.org>
    Cc: Helge Deller <deller@gmx.de>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    ---
    arch/sparc/include/asm/hardirq_64.h | 5 +++--
    1 file changed, 3 insertions(+), 2 deletions(-)

    diff --git a/arch/sparc/include/asm/hardirq_64.h b/arch/sparc/include/asm/hardirq_64.h
    index 6aba904..75b92bf 100644
    --- a/arch/sparc/include/asm/hardirq_64.h
    +++ b/arch/sparc/include/asm/hardirq_64.h
    @@ -10,8 +10,9 @@
    #include <asm/cpudata.h>

    #define __ARCH_IRQ_STAT
    -#define local_softirq_pending() \
    - (*this_cpu_ptr(&__cpu_data.__softirq_pending))
    +
    +#define local_softirq_pending_ref \
    + __cpu_data.__softirq_pending

    void ack_bad_irq(unsigned int irq);

    --
    2.7.4
    \
     
     \ /
      Last update: 2018-03-31 05:36    [W:2.908 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site