]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: use helpers for setting up a temporary cache timeout
authorLuis R. Rodriguez <mcgrof@kernel.org>
Sat, 10 Mar 2018 14:14:47 +0000 (06:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Mar 2018 08:28:46 +0000 (09:28 +0100)
commitc9f958c66a8e61f1ad11b8f925aa35320292a8ed
tree9864eb76f7eb7cfca41fa77e58aeb8a47345d1ce
parent76877aa94366ddc69864939a996c2e692a7ffcd5
firmware: use helpers for setting up a temporary cache timeout

We only use the timeout for the firmware fallback mechanism
except for trying to set the timeout during the cache setup
for resume/suspend. For those cases, setting the timeout should
be a no-op, so just reflect this in code by adding helpers for it.

This change introduces no functional changes.

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader.c