percpu.h (20c7775aecea04d8ca322039969d49dcf568e0e9) | percpu.h (687413d34d4aa72103de3e545f431f480dd21d7f) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2013 ARM Ltd. 4 */ 5#ifndef __ASM_PERCPU_H 6#define __ASM_PERCPU_H 7 8#include <linux/preempt.h> --- 225 unchanged lines hidden (view full) --- 234 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 235#define this_cpu_cmpxchg_2(pcp, o, n) \ 236 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 237#define this_cpu_cmpxchg_4(pcp, o, n) \ 238 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 239#define this_cpu_cmpxchg_8(pcp, o, n) \ 240 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 241 | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2013 ARM Ltd. 4 */ 5#ifndef __ASM_PERCPU_H 6#define __ASM_PERCPU_H 7 8#include <linux/preempt.h> --- 225 unchanged lines hidden (view full) --- 234 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 235#define this_cpu_cmpxchg_2(pcp, o, n) \ 236 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 237#define this_cpu_cmpxchg_4(pcp, o, n) \ 238 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 239#define this_cpu_cmpxchg_8(pcp, o, n) \ 240 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) 241 |
242#ifdef __KVM_NVHE_HYPERVISOR__ 243extern unsigned long __hyp_per_cpu_offset(unsigned int cpu); 244#define __per_cpu_offset 245#define per_cpu_offset(cpu) __hyp_per_cpu_offset((cpu)) 246#endif 247 |
|
242#include <asm-generic/percpu.h> 243 244/* Redefine macros for nVHE hyp under DEBUG_PREEMPT to avoid its dependencies. */ 245#if defined(__KVM_NVHE_HYPERVISOR__) && defined(CONFIG_DEBUG_PREEMPT) 246#undef this_cpu_ptr 247#define this_cpu_ptr raw_cpu_ptr 248#undef __this_cpu_read 249#define __this_cpu_read raw_cpu_read 250#undef __this_cpu_write 251#define __this_cpu_write raw_cpu_write 252#endif 253 254#endif /* __ASM_PERCPU_H */ | 248#include <asm-generic/percpu.h> 249 250/* Redefine macros for nVHE hyp under DEBUG_PREEMPT to avoid its dependencies. */ 251#if defined(__KVM_NVHE_HYPERVISOR__) && defined(CONFIG_DEBUG_PREEMPT) 252#undef this_cpu_ptr 253#define this_cpu_ptr raw_cpu_ptr 254#undef __this_cpu_read 255#define __this_cpu_read raw_cpu_read 256#undef __this_cpu_write 257#define __this_cpu_write raw_cpu_write 258#endif 259 260#endif /* __ASM_PERCPU_H */ |