diff options
author | Fernando Guzman Lugo <fernando.lugo@ti.com> | 2011-06-08 19:06:50 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-07-08 16:16:54 -0700 |
commit | 531d334239ae88af53c85ea00853f1cb0ec49dda (patch) | |
tree | 5e6a1110b4d89b030e63d78e0b87cfbe7fc736ef /drivers/remoteproc/Kconfig | |
parent | cd6577880568e02b3e343955cf771fd6e76735f2 (diff) | |
download | kernel_samsung_tuna-531d334239ae88af53c85ea00853f1cb0ec49dda.zip kernel_samsung_tuna-531d334239ae88af53c85ea00853f1cb0ec49dda.tar.gz kernel_samsung_tuna-531d334239ae88af53c85ea00853f1cb0ec49dda.tar.bz2 |
remoteproc: add runtime PM autosuspend support
Going to suspend and resuming is a heavy task with much latency. For that
reason remoteproc should go to suspend after some time of inactivity. However,
the remoteproc driver cannot know by itself if activity is being performing on
the remote processor (the driver is only in charge of turning it on/off). That
is why remoteproc adds new APIs to be notified when the remote processor is
used and then restart suspend timeout.
Remote proc users need to use these new APIs. Besides, if they have issues when
the remote processor goes to suspend without their knowledge, they need to
register for suspend/resume notifications. Returning an error in the
notification callback means they are using the remote processor and the
autosuspend should be cancelled.
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'drivers/remoteproc/Kconfig')
-rw-r--r-- | drivers/remoteproc/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index bad48eb..069c8fd 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -6,6 +6,14 @@ config REMOTE_PROC tristate +config REMOTE_PROC_AUTOSUSPEND + bool "Autosuspend support for remoteproc" + depends on REMOTE_PROC + default y + help + Say Y here if you want remote processor to suspend + after some time of inactivity. + # can't be tristate, due to omap_device_* and omap_hwmod_* dependency config OMAP_REMOTE_PROC bool "OMAP remoteproc support" |