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

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

Merge "kernel: tick-sched: Add API to get the next wakeup for a CPU"

parents df485206 e948653a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -281,4 +281,5 @@ static inline void tick_nohz_task_switch(void)
		__tick_nohz_task_switch();
}

ktime_t *get_next_event_cpu(unsigned int cpu);
#endif
+5 −0
Original line number Diff line number Diff line
@@ -1387,3 +1387,8 @@ int tick_check_oneshot_change(int allow_nohz)
	tick_nohz_switch_to_nohz();
	return 0;
}

ktime_t *get_next_event_cpu(unsigned int cpu)
{
	return &(per_cpu(tick_cpu_device, cpu).evtdev->next_event);
}