diff options
author | Vaibhav Hiremath <[email protected]> | 2012-05-09 10:07:05 -0700 |
---|---|---|
committer | Tony Lindgren <[email protected]> | 2012-05-09 10:07:05 -0700 |
commit | 187999119d93f584209400b052cf092141a33650 (patch) | |
tree | 8c1c90df099ef080a5913ca62b45bf65d97dc0c9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | bfd17879866b36e95c58721da070d9f2ac7f8901 (diff) |
ARM: OMAP1: Add checks for possible error condition in timer_init
On OMAP1, omap_32k_timer_init() function always returns "true",
irrespective of whether error occurred while initializing 32k sync
counter as a kernel clocksource or not and execution will never
fallback to mpu_timer clocksource init code.
This patch adds check for return value from function
omap_init_clocksource_32k(), and fallback to omap_mpu_timer_init()
in case of failure/error from omap_init_clocksource_32k().
Signed-off-by: Vaibhav Hiremath <[email protected]>
Acked-by: Kevin Hilman <[email protected]>
Tested-by: Kevin Hilman <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Benoit Cousson <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions