summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2013-10-24 16:06:32 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2013-10-24 21:06:13 -0700
commit7a29b4ad58501dfee26b7d69e5ee4409dd34277d (patch)
treef80e224f471bffff09675e4100b22a20a0c1d629 /security
parent3267f4970798bd99ee0b36b81aaafce585e76ad3 (diff)
security: tf_driver: remove tegra_read_cycle()
Tegra kernel now implements this function in a common place. Bug 1389113 Change-Id: I22f6448760fb10b4588f02d4d4b2b4fa76de8f90 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/303291
Diffstat (limited to 'security')
-rw-r--r--security/tf_driver/tf_device.c5
-rw-r--r--security/tf_driver/tf_util.c13
-rw-r--r--security/tf_driver/tf_util.h6
3 files changed, 2 insertions, 22 deletions
diff --git a/security/tf_driver/tf_device.c b/security/tf_driver/tf_device.c
index 51dbb37dbdec..9db0a41a6fde 100644
--- a/security/tf_driver/tf_device.c
+++ b/security/tf_driver/tf_device.c
@@ -33,6 +33,8 @@
#include <linux/device.h>
#endif
+#include <trace/events/nvsecurity.h>
+
#include "tf_protocol.h"
#include "tf_defs.h"
#include "tf_util.h"
@@ -48,9 +50,6 @@
#include "s_version.h"
-#define CREATE_TRACE_POINTS
-#include <trace/events/nvsecurity.h>
-
/*----------------------------------------------------------------------------
* Forward Declarations
*----------------------------------------------------------------------------*/
diff --git a/security/tf_driver/tf_util.c b/security/tf_driver/tf_util.c
index bc7b19b83f6e..b5b24497e138 100644
--- a/security/tf_driver/tf_util.c
+++ b/security/tf_driver/tf_util.c
@@ -23,19 +23,6 @@
#include "tf_util.h"
/*----------------------------------------------------------------------------
- * Tegra-specific routines
- *----------------------------------------------------------------------------*/
-
-u32 notrace tegra_read_cycle(void)
-{
- u32 cycle_count;
-
- asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(cycle_count));
-
- return cycle_count;
-}
-
-/*----------------------------------------------------------------------------
* Debug printing routines
*----------------------------------------------------------------------------*/
#ifdef CONFIG_TF_DRIVER_DEBUG_SUPPORT
diff --git a/security/tf_driver/tf_util.h b/security/tf_driver/tf_util.h
index 972aa7259299..3b124ed9ce95 100644
--- a/security/tf_driver/tf_util.h
+++ b/security/tf_driver/tf_util.h
@@ -37,12 +37,6 @@
#include "tf_defs.h"
/*----------------------------------------------------------------------------
- * Tegra-specific routines
- *----------------------------------------------------------------------------*/
-
-u32 notrace tegra_read_cycle(void);
-
-/*----------------------------------------------------------------------------
* Debug printing routines
*----------------------------------------------------------------------------*/