diff options
| author | Bryan O'Donoghue <pure.logic@nexus-software.ie> | 2016-09-26 18:01:23 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 12:59:51 +0200 |
| commit | 659849cdc065c3620e49f9a7dbc384669f4592ab (patch) | |
| tree | c8703817a3522f0e15db3b28b39b61e48625e68c /tools/perf/scripts/python/bin | |
| parent | 3d7f3588553a9ee392aa1abb5a3e8fd4b1ba8f5e (diff) | |
| download | linux-659849cdc065c3620e49f9a7dbc384669f4592ab.tar.gz linux-659849cdc065c3620e49f9a7dbc384669f4592ab.zip | |
staging: greybus/timesync: avoid divide by zero on X86 Qemu
A system configured without CONFIG_CPUFREQ will return 0 for cpufreq_get().
greybus-timesync can subsequently then do a divide-by-zero as result. This
patch fixes by checking for a zero return value from cpufreq_get() and
setting to a default value of 19.2MHz.
Reported-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
