Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6a84016 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "timer: Initialize global deferrable timer"

parents 9edd77a3 803e1c2c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1936,10 +1936,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);
}