google_cpm: reset start time on stop

There is a race between the stop of CP charging for thermals and the
restart that causes PPS to be disabled for the session. This change
makes sure that the start of the session is initialized and cleared
properly.

Bug: 231656227
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: If341d6b4b31a71c2a1d2f57cc37bdc14e2252e8a
diff --git a/google_cpm.c b/google_cpm.c
index f26b1c7..6889185 100644
--- a/google_cpm.c
+++ b/google_cpm.c
@@ -1553,6 +1553,8 @@
 		if (!dc_disable)
 			gcpm->dc_state = DC_IDLE;
 
+		gcpm->dc_start_time = 0;
+
 		gbms_logbuffer_prlog(gcpm->log, LOGLEVEL_INFO, 0, debug_printk_prlog,
 				     "PPS_Work: done%selap=%lld dc_state=%d %d->%d\n",
 				     dc_disable ? "for the session " : " ",