Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1084d0b5 authored by Yan He's avatar Yan He Committed by Gerrit - the friendly Code Review server
Browse files

msm: sps: avoid register read for ignored debugging messages



When the detailed logging is not enabled, pr_debug() will not
output the logging message. However, the parameters of pr_debug()
are still calculated. Thus, the parameters involving register read
could consume significant CPU time when the function with this kind
of logging message is invoked frequently. The fix here is to ignore
the operation of logging involving register access when the
detailed logging is disabled.

Change-Id: I1aff13c6f054c319034d7a47356bdd345741f159
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent a6b58f17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment