Commit 3951dbf2 authored by Linus Torvalds's avatar Linus Torvalds

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"
parents aa0a3247 5e18e412
...@@ -735,7 +735,7 @@ static void __arch_timer_setup(unsigned type, ...@@ -735,7 +735,7 @@ static void __arch_timer_setup(unsigned type,
clk->features |= CLOCK_EVT_FEAT_DYNIRQ; clk->features |= CLOCK_EVT_FEAT_DYNIRQ;
clk->name = "arch_mem_timer"; clk->name = "arch_mem_timer";
clk->rating = 400; clk->rating = 400;
clk->cpumask = cpu_all_mask; clk->cpumask = cpu_possible_mask;
if (arch_timer_mem_use_virtual) { if (arch_timer_mem_use_virtual) {
clk->set_state_shutdown = arch_timer_shutdown_virt_mem; clk->set_state_shutdown = arch_timer_shutdown_virt_mem;
clk->set_state_oneshot_stopped = arch_timer_shutdown_virt_mem; clk->set_state_oneshot_stopped = arch_timer_shutdown_virt_mem;
......
...@@ -277,8 +277,7 @@ static bool tick_check_preferred(struct clock_event_device *curdev, ...@@ -277,8 +277,7 @@ static bool tick_check_preferred(struct clock_event_device *curdev,
*/ */
return !curdev || return !curdev ||
newdev->rating > curdev->rating || newdev->rating > curdev->rating ||
(!cpumask_equal(curdev->cpumask, newdev->cpumask) && !cpumask_equal(curdev->cpumask, newdev->cpumask);
!tick_check_percpu(curdev, newdev, smp_processor_id()));
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment