summaryrefslogtreecommitdiffstats
path: root/drivers/timer
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-24 09:14:48 -0700
committerSimon Glass <sjg@chromium.org>2016-02-26 08:53:10 -0700
commit4f051824b5c2a6bf8d3114c772676977fb95969a (patch)
tree19790bd2551a1783952709dbe92406fe1bda9edb /drivers/timer
parentf91281b1eb8897cb49a395666aa58ae4c8c62c6c (diff)
downloadblackbird-obmc-uboot-4f051824b5c2a6bf8d3114c772676977fb95969a.tar.gz
blackbird-obmc-uboot-4f051824b5c2a6bf8d3114c772676977fb95969a.zip
timer: Support tracing fully
A few of the functions in the timer uclass are not marked with 'notrace'. Fix this so that tracing can be used with CONFIG_TRACE. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/timer')
-rw-r--r--drivers/timer/timer-uclass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c
index 83d1a35e06..382c0f2bd1 100644
--- a/drivers/timer/timer-uclass.c
+++ b/drivers/timer/timer-uclass.c
@@ -22,7 +22,7 @@ DECLARE_GLOBAL_DATA_PTR;
* tick, and no timer interrupt.
*/
-int timer_get_count(struct udevice *dev, u64 *count)
+int notrace timer_get_count(struct udevice *dev, u64 *count)
{
const struct timer_ops *ops = device_get_ops(dev);
@@ -32,9 +32,9 @@ int timer_get_count(struct udevice *dev, u64 *count)
return ops->get_count(dev, count);
}
-unsigned long timer_get_rate(struct udevice *dev)
+unsigned long notrace timer_get_rate(struct udevice *dev)
{
- struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev);
+ struct timer_dev_priv *uc_priv = dev->uclass_priv;
return uc_priv->clock_rate;
}
OpenPOWER on IntegriCloud