[PATCH 1/3] LoongArch: Allow rdtime_h() and rdtime_l() in 64-bit builds
WANG Rui <[email protected]>
| Newsgroups | org.kernel.vger.linux-efi,dev.linux.lists.loongarch,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Remove the CONFIG_32BIT guard around rdtime_h() and rdtime_l() so they can also be used in 64-bit builds. Signed-off-by: WANG Rui <[email protected]> --- arch/loongarch/include/asm/loongarch.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/include/asm/loongarch.h index 2a6bc99177d8..bb2da9c58411 100644 --- a/arch/loongarch/include/asm/loongarch.h +++ b/arch/loongarch/include/asm/loongarch.h @@ -1248,8 +1248,6 @@ #ifndef __ASSEMBLER__ -#ifdef CONFIG_32BIT - static __always_inline u32 rdtime_h(void) { u32 val = 0; @@ -1274,8 +1272,6 @@ static __always_inline u32 rdtime_l(void) return val; } -#else - static __always_inline u64 rdtime_d(void) { u64 val = 0; @@ -1288,8 +1284,6 @@ static __always_inline u64 rdtime_d(void) return val; } -#endif - static inline unsigned int get_csr_cpuid(void) { return csr_read32(LOONGARCH_CSR_CPUID); -- 2.54.0