File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -354,9 +354,9 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
354
354
success or error code if the request has not been queued up
355
355
356
356
`int pm_request_autosuspend(struct device *dev); `
357
- - schedule the execution of the subsystem-level suspend callback for the
358
- device when the autosuspend delay has expired; if the delay has already
359
- expired then the work item is queued up immediately
357
+ - Call pm_runtime_mark_last_busy() and schedule the execution of the
358
+ subsystem-level suspend callback for the device when the autosuspend delay
359
+ expires
360
360
361
361
`int pm_schedule_suspend(struct device *dev, unsigned int delay); `
362
362
- schedule the execution of the subsystem-level suspend callback for the
Original file line number Diff line number Diff line change @@ -448,11 +448,12 @@ static inline int pm_request_resume(struct device *dev)
448
448
}
449
449
450
450
/**
451
- * pm_request_autosuspend - Queue up autosuspend of a device.
451
+ * pm_request_autosuspend - Update the last access time and queue up autosuspend
452
+ * of a device.
452
453
* @dev: Target device.
453
454
*
454
- * Queue up a work item to run an equivalent pm_runtime_autosuspend() for @dev
455
- * asynchronously.
455
+ * Update the last access time of a device and queue up a work item to run an
456
+ * equivalent pm_runtime_autosuspend() for @dev asynchronously.
456
457
*
457
458
* Return:
458
459
* * 0: Success.
@@ -467,6 +468,7 @@ static inline int pm_request_resume(struct device *dev)
467
468
*/
468
469
static inline int pm_request_autosuspend (struct device * dev )
469
470
{
471
+ pm_runtime_mark_last_busy (dev );
470
472
return __pm_runtime_suspend (dev , RPM_ASYNC | RPM_AUTO );
471
473
}
472
474
You can’t perform that action at this time.
0 commit comments