mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
arm: vdso: Fix GENERIC_GETTIMEOFDAY dependencies
GENERIC_GETTIMEOFDAY can be enabled only if HAVE_GENERIC_VDSO is enabled. However, HAVE_ARM_ARCH_TIMER selects it unconditionally, thus throwing the following warning: WARNING: unmet direct dependencies detected for GENERIC_GETTIMEOFDAY Depends on [n]: HAVE_GENERIC_VDSO [=n] Selected by [y]: - HAVE_ARM_ARCH_TIMER [=y] && CPU_V7 [=y] Fix this by selecting GENERIC_GETTIMEOFDAY conditionally in HAVE_ARM_ARCH_TIMER as well. Also, handle this conditional dependency in all the references. Change-Id: Iccb154ad4c0f49857115372334e49504f31a8380 Signed-off-by: Raghavendra Rao Ananta <[email protected]>
This commit is contained in:
parent
5f5ad727a8
commit
c75011c99d
3 changed files with 20 additions and 5 deletions
|
|
@ -71,7 +71,12 @@ static enum arch_timer_ppi_nr arch_timer_uses_ppi = ARCH_TIMER_VIRT_PPI;
|
|||
static bool arch_timer_c3stop;
|
||||
static bool arch_timer_mem_use_virtual;
|
||||
static bool arch_counter_suspend_stop;
|
||||
|
||||
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
||||
static enum vdso_clock_mode vdso_default = VDSO_CLOCKMODE_ARCHTIMER;
|
||||
#else
|
||||
static enum vdso_clock_mode vdso_default = VDSO_CLOCKMODE_NONE;
|
||||
#endif
|
||||
|
||||
static cpumask_t evtstrm_available = CPU_MASK_NONE;
|
||||
static bool evtstrm_enable = IS_ENABLED(CONFIG_ARM_ARCH_TIMER_EVTSTREAM);
|
||||
|
|
|
|||
Loading…
Reference in a new issue