]> Git Repo - linux.git/commit
ARM: 8947/1: Fix __arch_get_hw_counter() access to CNTVCT
authorVincenzo Frascino <[email protected]>
Thu, 5 Dec 2019 10:04:51 +0000 (11:04 +0100)
committerRussell King <[email protected]>
Fri, 6 Dec 2019 11:51:03 +0000 (11:51 +0000)
commit04bb96427d4ee33fbdf15648ddf578c6ba1aef54
treef68ba6c7c2e8fdc5825412c5787cb9c1cb432413
parentff98a5f624d2910de050f1fc7f2a32769da86b51
ARM: 8947/1: Fix __arch_get_hw_counter() access to CNTVCT

__arch_get_hw_counter() should check clock_mode to see if it can access
CNTVCT. With the conversion to unified vDSO this check has been left out.

This causes on imx v6 and v7 (imx_v6_v7_defconfig) and other platforms to
hang at boot during the execution of the init process as per below:

[   19.976852] Run /sbin/init as init process
[   20.044931] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00000004

Fix the problem verifying that clock_mode is set coherently before
accessing CNTVCT.

Investigated-by: Arnd Bergmann <[email protected]>
Reported-by: Guenter Roeck <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Vincenzo Frascino <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/include/asm/vdso/gettimeofday.h
This page took 0.054308 seconds and 4 git commands to generate.