ANDROID: vendor hooks: use DECLARE_RESTRICTED_HOOK for android_rvh
The callback function bound to the android_rvh declared by
DECLARE_HOOK() cannot be called in cpu offline or non-atomic
context, otherwise it will report "BUG: scheduling while
atomic" problem, so use DECLARE_RESTRICTED_HOOK() instead.
Bug: 416819074
Change-Id: Ie603374bafe6e144c406306c948d8daeb484ad98
Signed-off-by:
Qianfeng Rong <rongqianfeng@vivo.corp-partner.google.com>
Loading
Please sign in to comment