Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/vdso: Enable x86 to use common headers

Enable x86 to use only the common headers in the implementation
of the vDSO library.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200320145351.32292-24-vincenzo.frascino@arm.com

authored by

Vincenzo Frascino and committed by
Thomas Gleixner
abc22418 c135fc87

+24 -11
+1 -11
arch/x86/include/asm/processor.h
··· 26 26 #include <asm/fpu/types.h> 27 27 #include <asm/unwind_hints.h> 28 28 #include <asm/vmxfeatures.h> 29 + #include <asm/vdso/processor.h> 29 30 30 31 #include <linux/personality.h> 31 32 #include <linux/cache.h> ··· 676 675 cpuid(op, &eax, &ebx, &ecx, &edx); 677 676 678 677 return edx; 679 - } 680 - 681 - /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ 682 - static __always_inline void rep_nop(void) 683 - { 684 - asm volatile("rep; nop" ::: "memory"); 685 - } 686 - 687 - static __always_inline void cpu_relax(void) 688 - { 689 - rep_nop(); 690 678 } 691 679 692 680 /*
+23
arch/x86/include/asm/vdso/processor.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * Copyright (C) 2020 ARM Ltd. 4 + */ 5 + #ifndef __ASM_VDSO_PROCESSOR_H 6 + #define __ASM_VDSO_PROCESSOR_H 7 + 8 + #ifndef __ASSEMBLY__ 9 + 10 + /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ 11 + static __always_inline void rep_nop(void) 12 + { 13 + asm volatile("rep; nop" ::: "memory"); 14 + } 15 + 16 + static __always_inline void cpu_relax(void) 17 + { 18 + rep_nop(); 19 + } 20 + 21 + #endif /* __ASSEMBLY__ */ 22 + 23 + #endif /* __ASM_VDSO_PROCESSOR_H */