mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 07:50:53 +07:00
MIPS: Octeon: Define ARCH_HAS_USABLE_BUILTIN_POPCOUNT for OCTEON.
OCTEON implements __builtin_popcount with a single instruction, so lets use it. Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org Cc: David Daney <ddaney@caviumnetworks.com> Patchwork: https://patchwork.linux-mips.org/patch/1431/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
1a403d1d2e
commit
1d1929c766
@ -77,6 +77,14 @@ static inline int read_current_timer(unsigned long *result)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __OCTEON__
|
||||
/*
|
||||
* All gcc versions that have OCTEON support define __OCTEON__ and have the
|
||||
* __builtin_popcount support.
|
||||
*/
|
||||
#define ARCH_HAS_USABLE_BUILTIN_POPCOUNT 1
|
||||
#endif
|
||||
|
||||
static inline int octeon_has_saa(void)
|
||||
{
|
||||
int id;
|
||||
|
Loading…
Reference in New Issue
Block a user