security: tlk_driver: remove tegra_read_cycle()
Varun Wadekar [Thu, 24 Oct 2013 10:34:48 +0000 (15:34 +0530)]
Tegra kernel now implements this function in a common place.

Bug 1389113

Change-Id: Ie9bcd4267d0098136c18877ef67dd0da2fedbb4c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/303290

security/tlk_driver/ote_device.c

index 9016a31..21def6c 100644 (file)
 
 #define SET_ANSWER(a, r, ro)   { a.result = r; a.result_origin = ro; }
 
-#define CREATE_TRACE_POINTS
-#include <trace/events/nvsecurity.h>
-
 struct tlk_device tlk_dev;
 static DEFINE_MUTEX(smc_lock);
 
-u32 notrace tegra_read_cycle(void)
-{
-       u32 cycle_count;
-
-       asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(cycle_count));
-
-       return cycle_count;
-}
-
 static int te_create_free_cmd_list(struct tlk_device *dev)
 {
        int cmd_desc_count, ret = 0;