[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c0ee70a-2bb6-ebb3-05cf-ff305cbef70b@arm.com>
Date: Fri, 14 Feb 2020 11:55:59 +0000
From: Vincenzo Frascino <vincenzo.frascino@....com>
To: Thomas Gleixner <tglx@...utronix.de>,
LKML <linux-kernel@...r.kernel.org>
Cc: x86@...nel.org, John Stultz <john.stultz@...aro.org>,
Andy Lutomirski <luto@...nel.org>,
Christophe Leroy <christophe.leroy@....fr>,
Paolo Bonzini <pbonzini@...hat.com>,
Juergen Gross <jgross@...e.com>,
Michael Kelley <mikelley@...rosoft.com>,
Sasha Levin <sashal@...nel.org>,
Ralf Baechle <ralf@...ux-mips.org>,
Paul Burton <paulburton@...nel.org>,
James Hogan <jhogan@...nel.org>,
Russell King <linux@...linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Marc Zyngier <maz@...nel.org>, Andrei Vagin <avagin@...il.com>
Subject: Re: [patch V2 05/17] MIPS: vdso: Compile high resolution parts
conditionally
On 2/7/20 12:38 PM, Thomas Gleixner wrote:
> From: Thomas Gleixner <tglx@...utronix.de>
>
> If neither the R4K nor the GIC timer is enabled in the kernel configuration
> then let the core VDSO code drop the high resolution parts at compile time.
>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@....com>
> ---
> arch/mips/include/asm/vdso/gettimeofday.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> --- a/arch/mips/include/asm/vdso/gettimeofday.h
> +++ b/arch/mips/include/asm/vdso/gettimeofday.h
> @@ -199,6 +199,13 @@ static __always_inline u64 __arch_get_hw
> return cycle_now;
> }
>
> +static inline bool mips_vdso_hres_capable(void)
> +{
> + return IS_ENABLED(CONFIG_CSRC_R4K) ||
> + IS_ENABLED(CONFIG_CLKSRC_MIPS_GIC);
> +}
> +#define __arch_vdso_hres_capable mips_vdso_hres_capable
> +
> static __always_inline const struct vdso_data *__arch_get_vdso_data(void)
> {
> return get_vdso_data();
>
--
Regards,
Vincenzo
Powered by blists - more mailing lists