mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
timer: Initialize global deferrable timer
Initialize timer_base_deferrable variables properly along with the initialization of the per cpu timers. Change-Id: I14599cb6ab2fcc657edc7489ee1a55535183e3db Signed-off-by: Kyle Yan <kyan@codeaurora.org> Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
parent
489af2b126
commit
85e1beff68
1 changed files with 9 additions and 0 deletions
|
|
@ -1942,10 +1942,19 @@ static void __init init_timer_cpu(int cpu)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void init_timer_deferrable_global(void)
|
||||
{
|
||||
timer_base_deferrable.cpu = nr_cpu_ids;
|
||||
raw_spin_lock_init(&timer_base_deferrable.lock);
|
||||
timer_base_deferrable.clk = jiffies;
|
||||
}
|
||||
|
||||
static void __init init_timer_cpus(void)
|
||||
{
|
||||
int cpu;
|
||||
|
||||
init_timer_deferrable_global();
|
||||
|
||||
for_each_possible_cpu(cpu)
|
||||
init_timer_cpu(cpu);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue