Skip to content
Snippets Groups Projects
Commit 8b224b81 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Create a HWCAP_SPARC_N2 and report it to userspace on Niagara-2.

parent 7dc40880
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
#define HWCAP_SPARC_V9 16 #define HWCAP_SPARC_V9 16
#define HWCAP_SPARC_ULTRA3 32 #define HWCAP_SPARC_ULTRA3 32
#define HWCAP_SPARC_BLKINIT 64 #define HWCAP_SPARC_BLKINIT 64
#define HWCAP_SPARC_N2 128
/* /*
* These are used to set parameters in the core dumps. * These are used to set parameters in the core dumps.
...@@ -155,8 +156,13 @@ static inline unsigned int sparc64_elf_hwcap(void) ...@@ -155,8 +156,13 @@ static inline unsigned int sparc64_elf_hwcap(void)
if (tlb_type == cheetah || tlb_type == cheetah_plus) if (tlb_type == cheetah || tlb_type == cheetah_plus)
cap |= HWCAP_SPARC_ULTRA3; cap |= HWCAP_SPARC_ULTRA3;
else if (tlb_type == hypervisor) else if (tlb_type == hypervisor) {
cap |= HWCAP_SPARC_BLKINIT; if (sun4v_chip_type == SUN4V_CHIP_NIAGARA1 ||
sun4v_chip_type == SUN4V_CHIP_NIAGARA2)
cap |= HWCAP_SPARC_BLKINIT;
if (sun4v_chip_type == SUN4V_CHIP_NIAGARA2)
cap |= HWCAP_SPARC_N2;
}
return cap; return cap;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment