summaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAbinaya P <abinayap@codeaurora.org>2017-02-17 00:33:27 +0530
committerAnkit Sharma <ansharma@codeaurora.org>2017-02-17 00:54:14 +0530
commit92bf9e3e884aa985d0ab194cd28582a4dd0d7661 (patch)
tree655df9845acaeaa7f4870312c727cf57568fe913 /tools/perf/util/trace-event-scripting.c
parentcebbcd9054ef3bd3c1132b44496a30a07ab808eb (diff)
msm: qpnp-haptic: add additional checks to avoid division by zero.
While calculating the +/-30% variation from the resonant frequency for auto resonance search algorithm, division by zero is happening causing device crash. Add additional checks to avoid such crashes. Also, RATE_CFG1 and RATE_CFG2 registers should be updated with values from AUTO_RES_LO and AUTO_RES_HI registers respectively only if the frequency variation is +/-25% of the resonant freqeuncy. Add code change for the same. CRs-Fixed: 1024697 Change-Id: I2a68cb61331ce4e68857031a4c0c14fded77a0e5 Signed-off-by: Abinaya P <abinayap@codeaurora.org> Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions