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

Commit 2804e673 authored by Prasad Sodagudi's avatar Prasad Sodagudi
Browse files

timer: Remove a BUG_ON check in migrates timers



__migrate_timers() can be called from both hotplug and
core isolation contexts. When isolatoins is happening,
the other core may be processing the timers simultaniously,
So remove a BUG_ON(old_base->running_timer) check in
__migrate_timers() function.

Change-Id: I6483fe0d95d0ce57d9f8d478ac9df64d47bff0fe
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 6dbbe7f7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1904,8 +1904,6 @@ static void __migrate_timers(unsigned int cpu, bool remove_pinned)
		 */
		forward_timer_base(new_base);

		BUG_ON(old_base->running_timer);

		for (i = 0; i < WHEEL_SIZE; i++)
			migrate_timer_list(new_base, old_base->vectors + i,
					   remove_pinned);