aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVaibhav Jain <[email protected]>2015-07-14 13:28:28 +0530
committerAlexandre Belloni <[email protected]>2015-09-05 13:19:06 +0200
commitf4a2eecb3ff9f51b179b213e7cc3766f920f2dc5 (patch)
tree29894bee75c6f1fb720da5f89a5c530153cba63b /tools/perf/scripts/python
parentc28b42e3aee03fe869a3f73039cf92686ccbc8fb (diff)
rtc: opal: Enable alarms only when opal supports tpo
rtc-opal driver provides support for rtc alarms via timed-power-on(tpo). However some Power platforms like BML use a fake rtc clock and don't support tpo. Such platforms are indicated by the missing 'has-tpo' property in the device tree. Current implementation however enables callback for rtc_class_ops.read/set alarm irrespective of the tpo support from the platform. This results in a failed opal call when kernel tries to read an existing alarms via opal_get_tpo_time during rtc device registration. This patch fixes this issue by setting opal_rtc_ops.read/set_alarm callback pointers only when tpo is supported. Acked-by: Michael Neuling <[email protected]> Acked-by: Neelesh Gupta <[email protected]> Signed-off-by: Vaibhav Jain <[email protected]> Acked-by: Stewart Smith <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions