diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-05-23 10:35:13 +0200 |
---|---|---|
committer | said m bagheri <ebgheri@steludxu2848.(none)> | 2011-06-17 13:42:01 +0200 |
commit | 357b0fb1b0e231756d57f96baaa94227a2cb759d (patch) | |
tree | 9cf4e39908259c8f7530a3bfcf7f510cf4e75bc6 /arch | |
parent | cd1edae8f821b1182310bf7dac44308905ba2b33 (diff) |
ARM: ux500: cpuidle_dbg: Remove unused debug code
Remove debug code that has not been used for a long time.
ST-Ericsson Linux next: ER338824
ST-Ericsson ID: ER338876
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9c2e977c4d61d1909cfd832085110a47423f7962
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23623
Reviewed-by: QATEST
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ux500/pm/cpuidle.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-ux500/pm/cpuidle_dbg.c | 39 | ||||
-rw-r--r-- | arch/arm/mach-ux500/pm/cpuidle_dbg.h | 7 |
3 files changed, 0 insertions, 49 deletions
diff --git a/arch/arm/mach-ux500/pm/cpuidle.c b/arch/arm/mach-ux500/pm/cpuidle.c index ac5924c558e..522cf4b39ee 100644 --- a/arch/arm/mach-ux500/pm/cpuidle.c +++ b/arch/arm/mach-ux500/pm/cpuidle.c @@ -481,9 +481,6 @@ static int enter_sleep(struct cpuidle_device *dev, spin_unlock(&cpuidle_lock); } - /* TODO: To use desc as debug print might be a bad idea */ - ux500_ci_dbg_msg(cstates[target].desc); - if (cstates[target].ARM == ARM_OFF) { context_varm_save_common(); spin_lock(&cpuidle_lock); diff --git a/arch/arm/mach-ux500/pm/cpuidle_dbg.c b/arch/arm/mach-ux500/pm/cpuidle_dbg.c index 77b1f218ddb..2639277d5be 100644 --- a/arch/arm/mach-ux500/pm/cpuidle_dbg.c +++ b/arch/arm/mach-ux500/pm/cpuidle_dbg.c @@ -27,7 +27,6 @@ #include "pm.h" #include "timer.h" -#define DBG_BUF_SIZE 5000 #define APE_ON_TIMER_INTERVAL 5 /* Seconds */ #define UART_RX_GPIO_PIN_MASK (1 << (CONFIG_UX500_CONSOLE_UART_GPIO_PIN % 32)) @@ -83,44 +82,6 @@ static struct cstate *cstates; static int cstates_len; static DEFINE_SPINLOCK(dbg_lock); -#ifdef U8500_CPUIDLE_EXTRA_DBG -void ux500_ci_dbg_msg(char *dbg_string) -{ - static char dbg_buf[DBG_BUF_SIZE]; - static int index; /* protected by dbg_lock */ - int str_len; - int smp_no_len; - int head_len; - unsigned long flags; - static const char * const smp_no_str = "\n %d:"; - static const char * const head_str = ":HEAD->"; - - spin_lock_irqsave(&dbg_lock, flags); - - str_len = strlen(dbg_string); - smp_no_len = strlen(smp_no_str); - head_len = strlen(head_str); - - if (index > head_len) - /* Remove last head printing */ - index -= head_len; - - if ((index + str_len + smp_no_len + head_len) > DBG_BUF_SIZE) - index = 0; /* Non perfect wrapping... */ - - sprintf(&dbg_buf[index], smp_no_str, smp_processor_id()); - index += smp_no_len; - - strcpy(&dbg_buf[index], dbg_string); - index += str_len; - - strcpy(&dbg_buf[index], head_str); - index += head_len; - - spin_unlock_irqrestore(&dbg_lock, flags); -} -#endif - bool ux500_ci_dbg_force_ape_on(void) { clk_enable(uart_clk); diff --git a/arch/arm/mach-ux500/pm/cpuidle_dbg.h b/arch/arm/mach-ux500/pm/cpuidle_dbg.h index c2d6a85e48f..143b8cf48d8 100644 --- a/arch/arm/mach-ux500/pm/cpuidle_dbg.h +++ b/arch/arm/mach-ux500/pm/cpuidle_dbg.h @@ -27,12 +27,6 @@ void ux500_ci_dbg_console_check_uart(void); void ux500_ci_dbg_console_handle_ape_resume(void); void ux500_ci_dbg_console_handle_ape_suspend(void); -#ifdef U8500_CPUIDLE_EXTRA_DBG -void ux500_ci_dbg_msg(char *dbg_string); -#else -static inline void ux500_ci_dbg_msg(char *dbg_string) { } -#endif - #else static inline void ux500_ci_dbg_init(void) { } @@ -61,7 +55,6 @@ static inline void ux500_ci_dbg_console(void) { } static inline void ux500_ci_dbg_console_check_uart(void) { } static inline void ux500_ci_dbg_console_handle_ape_resume(void) { } static inline void ux500_ci_dbg_console_handle_ape_suspend(void) { } -static inline void ux500_ci_dbg_msg(char *dbg_string) { } #endif #endif |