mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -22,7 +22,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
* tick, and no timer interrupt.
|
* 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);
|
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);
|
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;
|
return uc_priv->clock_rate;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user