[PATCH] LoongArch: vDSO: Drop custom __arch_vdso_hres_capable()

Thomas Weißschuh posted 1 patch 1 month, 3 weeks ago
arch/loongarch/include/asm/vdso/gettimeofday.h | 6 ------
1 file changed, 6 deletions(-)
[PATCH] LoongArch: vDSO: Drop custom __arch_vdso_hres_capable()
Posted by Thomas Weißschuh 1 month, 3 weeks ago
The custom definition is identical to the generic fallback one.

Remove it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
 arch/loongarch/include/asm/vdso/gettimeofday.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/loongarch/include/asm/vdso/gettimeofday.h b/arch/loongarch/include/asm/vdso/gettimeofday.h
index bae76767c693..18ba403e1ed9 100644
--- a/arch/loongarch/include/asm/vdso/gettimeofday.h
+++ b/arch/loongarch/include/asm/vdso/gettimeofday.h
@@ -85,12 +85,6 @@ static __always_inline u64 __arch_get_hw_counter(s32 clock_mode,
 	return count;
 }
 
-static inline bool loongarch_vdso_hres_capable(void)
-{
-	return true;
-}
-#define __arch_vdso_hres_capable loongarch_vdso_hres_capable
-
 #endif /* CONFIG_GENERIC_GETTIMEOFDAY */
 
 #endif /* !__ASSEMBLER__ */

---
base-commit: 6596a02b207886e9e00bb0161c7fd59fea53c081
change-id: 20260422-vdso-loongarch-cleanup-d16e07e92422

Best regards,
--  
Thomas Weißschuh <thomas.weissschuh@linutronix.de>

Re: [PATCH] LoongArch: vDSO: Drop custom __arch_vdso_hres_capable()
Posted by Huacai Chen 1 month, 2 weeks ago
Applied, thanks.

Huacai

On Wed, Apr 22, 2026 at 3:45 PM Thomas Weißschuh
<thomas.weissschuh@linutronix.de> wrote:
>
> The custom definition is identical to the generic fallback one.
>
> Remove it.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> ---
>  arch/loongarch/include/asm/vdso/gettimeofday.h | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/arch/loongarch/include/asm/vdso/gettimeofday.h b/arch/loongarch/include/asm/vdso/gettimeofday.h
> index bae76767c693..18ba403e1ed9 100644
> --- a/arch/loongarch/include/asm/vdso/gettimeofday.h
> +++ b/arch/loongarch/include/asm/vdso/gettimeofday.h
> @@ -85,12 +85,6 @@ static __always_inline u64 __arch_get_hw_counter(s32 clock_mode,
>         return count;
>  }
>
> -static inline bool loongarch_vdso_hres_capable(void)
> -{
> -       return true;
> -}
> -#define __arch_vdso_hres_capable loongarch_vdso_hres_capable
> -
>  #endif /* CONFIG_GENERIC_GETTIMEOFDAY */
>
>  #endif /* !__ASSEMBLER__ */
>
> ---
> base-commit: 6596a02b207886e9e00bb0161c7fd59fea53c081
> change-id: 20260422-vdso-loongarch-cleanup-d16e07e92422
>
> Best regards,
> --
> Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>
>