*
* NVIDIA Tegra specific power events.
*
- * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
(unsigned long)__entry->target)
);
+#ifdef CONFIG_CLK_SRC_TEGRA_TIMER
extern u32 notrace tegra_read_usec_raw(void);
+#else
+#undef tegra_read_usec_raw
+#define tegra_read_usec_raw() 0
+#endif
TRACE_EVENT(nvcpu_powergate,
*
* Security event logging to ftrace.
*
- * Copyright (c) 2012, NVIDIA Corporation.
+ * Copyright (c) 2012-2014, NVIDIA Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <linux/ktime.h>
#include <linux/tracepoint.h>
+#ifdef CONFIG_CLK_SRC_TEGRA_TIMER
extern u32 notrace tegra_read_usec_raw(void);
+#else
+#undef tegra_read_usec_raw
+#define tegra_read_usec_raw() 0
+#endif
DECLARE_EVENT_CLASS(usec_profiling,