clocksource/drivers/timer-ti-dm: Drop unnecessary restore
PATCH 1/1 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]>
--- drivers/clocksource/timer-ti-dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/timer-ti-dm.c +2 -1
@@ -122,7 +122,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))
Signature · 1 line
2.31.1
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 3d41fff3ae3980c055f3c7861264c46c924f3e4c Gitweb: https://git.kernel.org/tip/3d41fff3ae3980c055f3c7861264c46c924f3e4c Author: Tony Lindgren <[email protected]> AuthorDate: Tue, 18 May 2021 10:53:06 +03:00 Committer: Daniel Lezcano <[email protected]> CommitterDate: Wed, 16 Jun 2021 17:33:04 +02:00
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]>
--- drivers/clocksource/timer-ti-dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/timer-ti-dm.c +2 -1
@@ -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))