Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…g.h dependency removal
  • Loading branch information...
commit ef5cd030faa95b5bd378f5016eff2c4b8f5721d7 1 parent b96baf3
@supercurio supercurio authored
View
2  kernel/irq/handle.c
@@ -377,7 +377,7 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action)
trace_irq_handler_entry(irq, action);
ret = action->handler(irq, action->dev_id);
trace_irq_handler_exit(irq, action, ret);
- /* sec_debug_irq_sched_log(irq, (void *)action->handler, 2); */
+ sec_debug_irq_sched_log(irq, (void *)action->handler, 2);
switch (ret) {
case IRQ_WAKE_THREAD:
View
12 kernel/power/earlysuspend.c
@@ -22,7 +22,6 @@
#include <linux/workqueue.h>
#include "power.h"
-#include <mach/sec_debug.h>
enum {
DEBUG_USER_STATE = 1U << 0,
@@ -109,11 +108,8 @@ static void early_suspend(struct work_struct *work)
if (debug_mask & DEBUG_SUSPEND)
pr_info("early_suspend: call handlers\n");
list_for_each_entry(pos, &early_suspend_handlers, link) {
- if (pos->suspend != NULL) {
- if (debug_mask & DEBUG_SUSPEND)
- pr_info("early_suspend: func(%x)\n", (unsigned int)pos->suspend);
+ if (pos->suspend != NULL)
pos->suspend(pos);
- }
}
mutex_unlock(&early_suspend_lock);
@@ -153,8 +149,6 @@ static void late_resume(struct work_struct *work)
pr_info("late_resume: call handlers\n");
list_for_each_entry_reverse(pos, &early_suspend_handlers, link)
if (pos->resume != NULL) {
- if (debug_mask & DEBUG_SUSPEND)
- pr_info("late_resume: func(%x)\n", (unsigned int)pos->resume);
pos->resume(pos);
if (in_atomic()) {
pr_err("%s: became atomic after executing %p(%p)\n",
@@ -173,10 +167,6 @@ void request_suspend_state(suspend_state_t new_state)
unsigned long irqflags;
int old_sleep;
- if( 0 != sec_debug_level()) {
- debug_mask =debug_mask | DEBUG_SUSPEND;
- }
-
spin_lock_irqsave(&state_lock, irqflags);
old_sleep = state & SUSPEND_REQUESTED;
if (debug_mask & DEBUG_USER_STATE) {
View
8 kernel/power/wakelock.c
@@ -23,7 +23,6 @@
#include <linux/proc_fs.h>
#endif
#include "power.h"
-#include <mach/sec_debug.h>
enum {
DEBUG_EXIT_SUSPEND = 1U << 0,
@@ -32,7 +31,7 @@ enum {
DEBUG_EXPIRE = 1U << 3,
DEBUG_WAKE_LOCK = 1U << 4,
};
-static int debug_mask = DEBUG_EXIT_SUSPEND | DEBUG_WAKEUP | DEBUG_SUSPEND ;
+static int debug_mask = DEBUG_EXIT_SUSPEND | DEBUG_WAKEUP;
module_param_named(debug_mask, debug_mask, int, S_IRUGO | S_IWUSR | S_IWGRP);
#define WAKE_LOCK_TYPE_MASK (0x0f)
@@ -543,11 +542,6 @@ static int __init wakelocks_init(void)
int ret;
int i;
- if( 0 != sec_debug_level()) {
- pr_info("wakelocks_init: add DEBUG_EXPIRE\n");
- debug_mask =debug_mask | DEBUG_EXPIRE;
- }
-
for (i = 0; i < ARRAY_SIZE(active_wake_locks); i++)
INIT_LIST_HEAD(&active_wake_locks[i]);
Please sign in to comment.
Something went wrong with that request. Please try again.