spinlock.h (cb54b53adae70701bdd77d848cea4b9b39b61cf9) spinlock.h (73a6fdc48bf52e93c26874dc8c0f0f8d5585a809)
1#ifndef __ASM_SPINLOCK_H
2#define __ASM_SPINLOCK_H
3
4#if __LINUX_ARM_ARCH__ < 6
5#error SMP not supported on pre-ARMv6 CPUs
6#endif
7
8#include <asm/processor.h>

--- 32 unchanged lines hidden (view full) ---

41#define SEV ALT_SMP("sev", "nop")
42#define WFE(cond) ALT_SMP("wfe" cond, "nop")
43#endif
44
45static inline void dsb_sev(void)
46{
47#if __LINUX_ARM_ARCH__ >= 7
48 __asm__ __volatile__ (
1#ifndef __ASM_SPINLOCK_H
2#define __ASM_SPINLOCK_H
3
4#if __LINUX_ARM_ARCH__ < 6
5#error SMP not supported on pre-ARMv6 CPUs
6#endif
7
8#include <asm/processor.h>

--- 32 unchanged lines hidden (view full) ---

41#define SEV ALT_SMP("sev", "nop")
42#define WFE(cond) ALT_SMP("wfe" cond, "nop")
43#endif
44
45static inline void dsb_sev(void)
46{
47#if __LINUX_ARM_ARCH__ >= 7
48 __asm__ __volatile__ (
49 "dsb\n"
49 "dsb ishst\n"
50 SEV
51 );
52#else
53 __asm__ __volatile__ (
54 "mcr p15, 0, %0, c7, c10, 4\n"
55 SEV
56 : : "r" (0)
57 );

--- 224 unchanged lines hidden ---
50 SEV
51 );
52#else
53 __asm__ __volatile__ (
54 "mcr p15, 0, %0, c7, c10, 4\n"
55 SEV
56 : : "r" (0)
57 );

--- 224 unchanged lines hidden ---