diff options
author | Helge Deller <deller@gmx.de> | 2015-12-12 20:22:03 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2016-01-13 00:03:36 +0300 |
commit | fc6325750348272d10a8e39adb9fc0e89a667774 (patch) | |
tree | 6325d652427aa9928459319badd834d45836b095 /arch/parisc/include | |
parent | 602c9c9a01a4f0ef091295ac75c74c7fe94d69a4 (diff) | |
download | linux-fc6325750348272d10a8e39adb9fc0e89a667774.tar.xz |
parisc: Reduce overhead of parisc_requires_coherency()
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r-- | arch/parisc/include/asm/processor.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h index 7e759ecb1343..2e674e13e005 100644 --- a/arch/parisc/include/asm/processor.h +++ b/arch/parisc/include/asm/processor.h @@ -311,18 +311,17 @@ extern unsigned long get_wchan(struct task_struct *p); #define cpu_relax() barrier() #define cpu_relax_lowlatency() cpu_relax() -/* Used as a macro to identify the combined VIPT/PIPT cached - * CPUs which require a guarantee of coherency (no inequivalent - * aliases with different data, whether clean or not) to operate */ -static inline int parisc_requires_coherency(void) -{ +/* + * parisc_requires_coherency() is used to identify the combined VIPT/PIPT + * cached CPUs which require a guarantee of coherency (no inequivalent aliases + * with different data, whether clean or not) to operate + */ #ifdef CONFIG_PA8X00 - return (boot_cpu_data.cpu_type == mako) || - (boot_cpu_data.cpu_type == mako2); +extern int _parisc_requires_coherency; +#define parisc_requires_coherency() _parisc_requires_coherency #else - return 0; +#define parisc_requires_coherency() (0) #endif -} #endif /* __ASSEMBLY__ */ |