References: <20220402030919.5104-1-hongzhan.chen@intel.com> <20220402030919.5104-2-hongzhan.chen@intel.com> From: Philippe Gerum Subject: Re: [linux-dovetail PATCH 2/2] clocksource: GENERIC_CLOCKSOURCE_VDSO only supported on ARM Date: Sat, 02 Apr 2022 11:11:24 +0200 In-reply-to: <20220402030919.5104-2-hongzhan.chen@intel.com> Message-ID: <878rsnq20o.fsf@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hongzhan Chen Cc: xenomai@xenomai.org Hongzhan Chen via Xenomai writes: > Currently, GENERIC_CLOCKSOURCE_VDSO only supported well on ARM. > To fix build issue like following when make allyesconfig on x86 platform. > > arch/x86/entry/vdso/../../../../lib/vdso/gettimeofday.c:145:14: > error: implicit declaration of function clock_open_device > > Signed-off-by: Hongzhan Chen > --- > drivers/clocksource/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > index 5138cd593373..1e8c1cd086d5 100644 > --- a/drivers/clocksource/Kconfig > +++ b/drivers/clocksource/Kconfig > @@ -644,7 +644,7 @@ config CLKSRC_ST_LPC > bool "Low power clocksource found in the LPC" if COMPILE_TEST > select TIMER_OF if OF > depends on HAS_IOMEM > - select GENERIC_CLOCKSOURCE_VDSO > + select GENERIC_CLOCKSOURCE_VDSO if ARM > help > Enable this option to use the Low Power controller timer > as clocksource. Starting from v5.17, Dovetail has generic support for clocksource access via the vDSO for CONFIG_ARM64 too. Which kernel release is this patch based on? -- Philippe.