Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Samsung v1 GT-I9100 sources: [common?] Kernel debugging mach/sec_debu…

…g.h dependency removal
  • Loading branch information...
commit ef5cd030faa95b5bd378f5016eff2c4b8f5721d7 1 parent b96baf3
SIMOND François supercurio authored
2  kernel/irq/handle.c
@@ -377,7 +377,7 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action)
377 377 trace_irq_handler_entry(irq, action);
378 378 ret = action->handler(irq, action->dev_id);
379 379 trace_irq_handler_exit(irq, action, ret);
380   - /* sec_debug_irq_sched_log(irq, (void *)action->handler, 2); */
  380 + sec_debug_irq_sched_log(irq, (void *)action->handler, 2);
381 381
382 382 switch (ret) {
383 383 case IRQ_WAKE_THREAD:
12 kernel/power/earlysuspend.c
@@ -22,7 +22,6 @@
22 22 #include <linux/workqueue.h>
23 23
24 24 #include "power.h"
25   -#include <mach/sec_debug.h>
26 25
27 26 enum {
28 27 DEBUG_USER_STATE = 1U << 0,
@@ -109,11 +108,8 @@ static void early_suspend(struct work_struct *work)
109 108 if (debug_mask & DEBUG_SUSPEND)
110 109 pr_info("early_suspend: call handlers\n");
111 110 list_for_each_entry(pos, &early_suspend_handlers, link) {
112   - if (pos->suspend != NULL) {
113   - if (debug_mask & DEBUG_SUSPEND)
114   - pr_info("early_suspend: func(%x)\n", (unsigned int)pos->suspend);
  111 + if (pos->suspend != NULL)
115 112 pos->suspend(pos);
116   - }
117 113 }
118 114 mutex_unlock(&early_suspend_lock);
119 115
@@ -153,8 +149,6 @@ static void late_resume(struct work_struct *work)
153 149 pr_info("late_resume: call handlers\n");
154 150 list_for_each_entry_reverse(pos, &early_suspend_handlers, link)
155 151 if (pos->resume != NULL) {
156   - if (debug_mask & DEBUG_SUSPEND)
157   - pr_info("late_resume: func(%x)\n", (unsigned int)pos->resume);
158 152 pos->resume(pos);
159 153 if (in_atomic()) {
160 154 pr_err("%s: became atomic after executing %p(%p)\n",
@@ -173,10 +167,6 @@ void request_suspend_state(suspend_state_t new_state)
173 167 unsigned long irqflags;
174 168 int old_sleep;
175 169
176   - if( 0 != sec_debug_level()) {
177   - debug_mask =debug_mask | DEBUG_SUSPEND;
178   - }
179   -
180 170 spin_lock_irqsave(&state_lock, irqflags);
181 171 old_sleep = state & SUSPEND_REQUESTED;
182 172 if (debug_mask & DEBUG_USER_STATE) {
8 kernel/power/wakelock.c
@@ -23,7 +23,6 @@
23 23 #include <linux/proc_fs.h>
24 24 #endif
25 25 #include "power.h"
26   -#include <mach/sec_debug.h>
27 26
28 27 enum {
29 28 DEBUG_EXIT_SUSPEND = 1U << 0,
@@ -32,7 +31,7 @@ enum {
32 31 DEBUG_EXPIRE = 1U << 3,
33 32 DEBUG_WAKE_LOCK = 1U << 4,
34 33 };
35   -static int debug_mask = DEBUG_EXIT_SUSPEND | DEBUG_WAKEUP | DEBUG_SUSPEND ;
  34 +static int debug_mask = DEBUG_EXIT_SUSPEND | DEBUG_WAKEUP;
36 35 module_param_named(debug_mask, debug_mask, int, S_IRUGO | S_IWUSR | S_IWGRP);
37 36
38 37 #define WAKE_LOCK_TYPE_MASK (0x0f)
@@ -543,11 +542,6 @@ static int __init wakelocks_init(void)
543 542 int ret;
544 543 int i;
545 544
546   - if( 0 != sec_debug_level()) {
547   - pr_info("wakelocks_init: add DEBUG_EXPIRE\n");
548   - debug_mask =debug_mask | DEBUG_EXPIRE;
549   - }
550   -
551 545 for (i = 0; i < ARRAY_SIZE(active_wake_locks); i++)
552 546 INIT_LIST_HEAD(&active_wake_locks[i]);
553 547

0 comments on commit ef5cd03

Please sign in to comment.
Something went wrong with that request. Please try again.