aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/include/mach/sec_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/include/mach/sec_debug.h')
-rw-r--r--arch/arm/mach-exynos/include/mach/sec_debug.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos/include/mach/sec_debug.h b/arch/arm/mach-exynos/include/mach/sec_debug.h
index 53ca0cb..1beb973 100644
--- a/arch/arm/mach-exynos/include/mach/sec_debug.h
+++ b/arch/arm/mach-exynos/include/mach/sec_debug.h
@@ -80,6 +80,8 @@ extern void __sec_debug_task_log(int cpu, struct task_struct *task);
extern void __sec_debug_irq_log(unsigned int irq, void *fn, int en);
extern void __sec_debug_work_log(struct worker *worker,
struct work_struct *work, work_func_t f);
+extern void __sec_debug_hrtimer_log(struct hrtimer *timer,
+ enum hrtimer_restart (*fn) (struct hrtimer *), int en);
static inline void sec_debug_task_log(int cpu, struct task_struct *task)
{
@@ -100,18 +102,25 @@ static inline void sec_debug_work_log(struct worker *worker,
__sec_debug_work_log(worker, work, f);
}
-#ifdef CONFIG_SEC_DEBUG_SOFTIRQ_LOG
-static inline void sec_debug_softirq_log(unsigned int irq, void *fn, int en)
+static inline void sec_debug_hrtimer_log(struct hrtimer *timer,
+ enum hrtimer_restart (*fn) (struct hrtimer *), int en)
{
+#ifdef CONFIG_SEC_DEBUG_HRTIMER_LOG
if (unlikely(sec_debug_level.en.kernel_fault))
- __sec_debug_irq_log(irq, fn, en);
+ __sec_debug_hrtimer_log(timer, fn, en);
+#endif
}
-#else
+
static inline void sec_debug_softirq_log(unsigned int irq, void *fn, int en)
{
-}
+#ifdef CONFIG_SEC_DEBUG_SOFTIRQ_LOG
+ if (unlikely(sec_debug_level.en.kernel_fault))
+ __sec_debug_irq_log(irq, fn, en);
#endif
+}
+
#else
+
static inline void sec_debug_task_log(int cpu, struct task_struct *task)
{
}
@@ -125,6 +134,11 @@ static inline void sec_debug_work_log(struct worker *worker,
{
}
+static inline void sec_debug_hrtimer_log(struct hrtimer *timer,
+ enum hrtimer_restart (*fn) (struct hrtimer *), int en)
+{
+}
+
static inline void sec_debug_softirq_log(unsigned int irq, void *fn, int en)
{
}
@@ -181,7 +195,6 @@ static inline void debug_rwsemaphore_up_log(struct rw_semaphore *sem)
enum sec_debug_aux_log_idx {
SEC_DEBUG_AUXLOG_CPU_BUS_CLOCK_CHANGE,
- SEC_DEBUG_AUXLOG_LOGBUF_LOCK_CHANGE,
SEC_DEBUG_AUXLOG_ITEM_MAX,
};
@@ -191,6 +204,10 @@ extern void sec_debug_aux_log(int idx, char *fmt, ...);
#define sec_debug_aux_log(idx, ...) do { } while (0)
#endif
+#if defined(CONFIG_MACH_Q1_BD)
+extern int sec_debug_panic_handler_safe(void *buf);
+#endif
+
extern void read_lcd_register(void);
#endif /* SEC_DEBUG_H */