Revert "FROMLIST: [PATCH v2] tick/broadcast: Do not set oneshot_mask except was_periodic was true"
This reverts commit ec96f22414.
This patch conflicts with the latest patches from LTS. Revert it for now, and we will add the new upstream patch later.
Bug: 289472284
Change-Id: I1fb835ad321e1b42780660819439f9395b1793d9
Signed-off-by: liuyu <liuyu@allwinnertech.com>
This commit is contained in:
@@ -1037,13 +1037,12 @@ static void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
|
||||
*/
|
||||
cpumask_copy(tmpmask, tick_broadcast_mask);
|
||||
cpumask_clear_cpu(cpu, tmpmask);
|
||||
cpumask_or(tick_broadcast_oneshot_mask,
|
||||
tick_broadcast_oneshot_mask, tmpmask);
|
||||
|
||||
if (was_periodic && !cpumask_empty(tmpmask)) {
|
||||
ktime_t nextevt = tick_get_next_period();
|
||||
|
||||
cpumask_or(tick_broadcast_oneshot_mask,
|
||||
tick_broadcast_oneshot_mask, tmpmask);
|
||||
|
||||
clockevents_switch_state(bc, CLOCK_EVT_STATE_ONESHOT);
|
||||
tick_broadcast_init_next_event(tmpmask, nextevt);
|
||||
tick_broadcast_set_event(bc, cpu, nextevt);
|
||||
|
||||
Reference in New Issue
Block a user