-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: Fix circular include of asm/lse.h through linux/jump_label.h
Commit efd9e03 ("arm64: Use static keys for CPU features") introduced support for static keys in asm/cpufeature.h, including linux/jump_label.h. When CC_HAVE_ASM_GOTO is not defined, this causes a circular dependency via linux/atomic.h, asm/lse.h and asm/cpufeature.h. This patch moves the capability macros out out of asm/cpufeature.h into a separate asm/cpucaps.h and modifies some of the #includes accordingly. Fixes: efd9e03 ("arm64: Use static keys for CPU features") Reported-by: Artem Savkov <asavkov@redhat.com> Tested-by: Artem Savkov <asavkov@redhat.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
- Loading branch information
Catalin Marinas
authored and
Will Deacon
committed
Nov 5, 2016
1 parent
a909d3e
commit 272d01b
Showing
4 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* arch/arm64/include/asm/cpucaps.h | ||
* | ||
* Copyright (C) 2016 ARM Ltd. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#ifndef __ASM_CPUCAPS_H | ||
#define __ASM_CPUCAPS_H | ||
|
||
#define ARM64_WORKAROUND_CLEAN_CACHE 0 | ||
#define ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE 1 | ||
#define ARM64_WORKAROUND_845719 2 | ||
#define ARM64_HAS_SYSREG_GIC_CPUIF 3 | ||
#define ARM64_HAS_PAN 4 | ||
#define ARM64_HAS_LSE_ATOMICS 5 | ||
#define ARM64_WORKAROUND_CAVIUM_23154 6 | ||
#define ARM64_WORKAROUND_834220 7 | ||
#define ARM64_HAS_NO_HW_PREFETCH 8 | ||
#define ARM64_HAS_UAO 9 | ||
#define ARM64_ALT_PAN_NOT_UAO 10 | ||
#define ARM64_HAS_VIRT_HOST_EXTN 11 | ||
#define ARM64_WORKAROUND_CAVIUM_27456 12 | ||
#define ARM64_HAS_32BIT_EL0 13 | ||
#define ARM64_HYP_OFFSET_LOW 14 | ||
#define ARM64_MISMATCHED_CACHE_LINE_SIZE 15 | ||
|
||
#define ARM64_NCAPS 16 | ||
|
||
#endif /* __ASM_CPUCAPS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters