diff options
| author | Tony Lindgren <[email protected]> | 2021-05-18 07:53:06 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2021-06-16 15:33:04 +0000 |
| commit | 3d41fff3ae3980c055f3c7861264c46c924f3e4c (patch) | |
| tree | 9405c8fc1df1e38c424d875dd875f0109b3ea609 | |
| parent | clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround (diff) | |
| download | kernel-3d41fff3ae3980c055f3c7861264c46c924f3e4c.tar.gz kernel-3d41fff3ae3980c055f3c7861264c46c924f3e4c.zip | |
clocksource/drivers/timer-ti-dm: Drop unnecessary restore
The device is not losing context on CPU_CLUSTER_PM_ERROR. As we are only
saving and restoring context with cpu_pm, there is no need to restore the
context in case of an error.
Note that the unnecessary restoring of context does not cause issues, it's
just not needed.
Cc: Lokesh Vutla <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | drivers/clocksource/timer-ti-dm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index e5c631f1b5cb..3e52c5226c4d 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -128,7 +128,8 @@ static int omap_timer_context_notifier(struct notifier_block *nb, break; omap_timer_save_context(timer); break; - case CPU_CLUSTER_PM_ENTER_FAILED: + case CPU_CLUSTER_PM_ENTER_FAILED: /* No need to restore context */ + break; case CPU_CLUSTER_PM_EXIT: if ((timer->capability & OMAP_TIMER_ALWON) || !atomic_read(&timer->enabled)) |
