msm: rtb: Add rtb timestamps using sched_clock()

Provide timestamps in the rtb log for the purposes of correlating rtb
entries with dmesg logs. This provdes a 64 bit timestamp in nanoseconds,
overloading the caller field for the lower bits. In order to indicate to
parsing tools that the caller field is not a code pointer, the new entry
type has its highest order bit set.

Change-Id: I275b2a5981e6d0d61a658930914c37b63cfa3e5b
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
diff --git a/arch/arm/mach-msm/include/mach/msm_rtb.h b/arch/arm/mach-msm/include/mach/msm_rtb.h
index 5eea63f..74ddfbd 100644
--- a/arch/arm/mach-msm/include/mach/msm_rtb.h
+++ b/arch/arm/mach-msm/include/mach/msm_rtb.h
@@ -15,7 +15,7 @@
 
 /*
  * These numbers are used from the kernel command line and sysfs
- * to control filtering. Remove items from here with extreme caution
+ * to control filtering. Remove items from here with extreme caution.
  */
 enum logk_event_type {
 	LOGK_NONE = 0,
@@ -24,9 +24,11 @@
 	LOGK_LOGBUF = 3,
 	LOGK_HOTPLUG = 4,
 	LOGK_CTXID = 5,
-	LOGK_OTHER = 31,
+	LOGK_TIMESTAMP = 6,
 };
 
+#define LOGTYPE_NOPC 0x80
+
 struct msm_rtb_platform_data {
 	unsigned int size;
 };