Skip to content

Commit 3951dbf

Browse files
committed
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fixes from Ingo Molnar: "A clocksource driver fix and a revert" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clocksource: arm_arch_timer: Set arch_mem_timer cpumask to cpu_possible_mask Revert "tick: Prefer a lower rating device only if it's CPU local device"
2 parents aa0a324 + 5e18e41 commit 3951dbf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/clocksource/arm_arch_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ static void __arch_timer_setup(unsigned type,
735735
clk->features |= CLOCK_EVT_FEAT_DYNIRQ;
736736
clk->name = "arch_mem_timer";
737737
clk->rating = 400;
738-
clk->cpumask = cpu_all_mask;
738+
clk->cpumask = cpu_possible_mask;
739739
if (arch_timer_mem_use_virtual) {
740740
clk->set_state_shutdown = arch_timer_shutdown_virt_mem;
741741
clk->set_state_oneshot_stopped = arch_timer_shutdown_virt_mem;

kernel/time/tick-common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ static bool tick_check_preferred(struct clock_event_device *curdev,
277277
*/
278278
return !curdev ||
279279
newdev->rating > curdev->rating ||
280-
(!cpumask_equal(curdev->cpumask, newdev->cpumask) &&
281-
!tick_check_percpu(curdev, newdev, smp_processor_id()));
280+
!cpumask_equal(curdev->cpumask, newdev->cpumask);
282281
}
283282

284283
/*

0 commit comments

Comments
 (0)