aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2014-05-14 11:58:55 -0700
committerDmitry Torokhov <[email protected]>2014-05-14 16:40:08 -0700
commit70a26071f8552a0f193cf442f424decfe0f2e569 (patch)
treed6002f935f3727ad52fd7928a46c87a71c6d0d7f /tools/perf/util/scripting-engines/trace-event-python.c
parent61616ed0ce2ed581df89be5d917f8d7e9fc3074f (diff)
Input: pmic8xxx-pwrkey - set sane default for debounce time
If the debounce time is 0 our usage of ilog2() later on in this driver will cause undefined behavior. If CONFIG_OF=n this fact is evident to the compiler, and it emits a call to ____ilog2_NaN() which doesn't exist. Fix this by setting a sane default for debounce and failing to probe if debounce is 0 in the DT. Reported-by: Arnd Bergmann <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions