sudeep-holla and Thomas Gleixner clocksource: arm_arch_timer: Set arch_mem_timer cpumask to cpu_possib…
…le_mask

Currently, arch_mem_timer cpumask is set to cpu_all_mask which should be
fine. However, cpu_possible_mask is more accurate and if there are other
clockevent source in the system which are set to cpu_possible_mask, then
having cpu_all_mask may result in issue.

E.g. on a platform with arm,sp804 timer with rating 300 and
cpu_possible_mask and this arch_mem_timer timer with rating 400 and
cpu_all_mask, tick_check_preferred may choose both preferred as the
cpumasks are not equal though they must be.

This issue was root caused incorrectly initially and a fix was merged as
commit 1332a90 ("tick: Prefer a lower rating device only if it's CPU
local device").

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Link: https://lkml.kernel.org/r/1531151136-18297-2-git-send-email-sudeep.holla@arm.com
Latest commit 5e18e41 Jul 9, 2018
Permalink
..
Failed to load latest commit information.
Kconfig
Makefile Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/… Apr 16, 2018
acpi_pm.c
arc_timer.c
arm_arch_timer.c
arm_global_timer.c
armv7m_systick.c
asm9260_timer.c
bcm2835_timer.c
bcm_kona_timer.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
cadence_ttc_timer.c
clksrc-dbx500-prcmu.c
clksrc_st_lpc.c
clps711x-timer.c
cs5535-clockevt.c
dummy_timer.c
dw_apb_timer.c
dw_apb_timer_of.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
em_sti.c clocksource/drivers/em_sti: Fix error return codes in em_sti_probe() Aug 10, 2017
exynos_mct.c
fsl_ftm_timer.c
h8300_timer16.c
h8300_timer8.c
h8300_tpu.c
i8253.c License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
jcore-pit.c
meson6_timer.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
mips-gic-timer.c
mmio.c
mps2-timer.c
mtk_timer.c
mxs_timer.c
nomadik-mtu.c
numachip.c
owl-timer.c
pxa_timer.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
qcom-timer.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
renesas-ostm.c
rockchip_timer.c
samsung_pwm_timer.c
scx200_hrt.c
sh_cmt.c
sh_mtu2.c treewide: kzalloc() -> kcalloc() Jun 12, 2018
sh_tmu.c
sun4i_timer.c
tango_xtal.c
tcb_clksrc.c clocksource/drivers/tcb_clksrc: Fix clock speed message Jan 8, 2018
tegra20_timer.c
time-armada-370-xp.c
time-efm32.c
time-lpc32xx.c
time-orion.c
time-pistachio.c
timer-atcpit100.c
timer-atlas7.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
timer-atmel-pit.c
timer-atmel-st.c
timer-digicolor.c
timer-fttmr010.c
timer-imx-gpt.c
timer-imx-tpm.c clocksource/drivers/timer-imx-tpm: Switch to SPDX identifier May 23, 2018
timer-integrator-ap.c clocksource/integrator: Fix section mismatch warning Sep 18, 2017
timer-keystone.c
timer-npcm7xx.c clocksource/drivers/npcm: Add NPCM7xx timer driver Mar 30, 2018
timer-nps.c
timer-of.c
timer-of.h
timer-oxnas-rps.c
timer-prima2.c
timer-probe.c
timer-sp.h
timer-sp804.c
timer-sprd.c
timer-stm32.c
timer-sun5i.c treewide/trivial: Remove ';;$' typo noise Feb 22, 2018
timer-ti-32k.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
timer-ti-dm.c
timer-u300.c
versatile.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
vf_pit_timer.c
vt8500_timer.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE Jun 14, 2017
zevio-timer.c