create firmware image for the Ubiquiti LS-SR71 board
[openwrt/openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1149-Re-PATCH-6-7-fix-suppress-cpu-suspend-save-restor.patch
1 From 624dadf2c300d9e5e439c07e1244babcef2fedca Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <zecke@openmoko.org>
3 Date: Tue, 13 May 2008 18:53:40 +0100
4 Subject: [PATCH] Re: [PATCH 6/7] fix-suppress-cpu-suspend-save-restore-messages.patch
5
6 Andy Green <andy@...> writes:
7
8
9 I kind of dislike commenting out code. Is this any better?
10 ---
11 arch/arm/plat-s3c24xx/pm.c | 9 ++++++++-
12 1 files changed, 8 insertions(+), 1 deletions(-)
13
14 diff --git a/arch/arm/plat-s3c24xx/pm.c b/arch/arm/plat-s3c24xx/pm.c
15 index 4fdb311..ae8efaf 100644
16 --- a/arch/arm/plat-s3c24xx/pm.c
17 +++ b/arch/arm/plat-s3c24xx/pm.c
18 @@ -169,8 +169,15 @@ static void s3c2410_pm_debug_init(void)
19 }
20
21 #define DBG(fmt...) pm_dbg(fmt)
22 +#define RESTORE_DBG(fmt...) printk(KERN_DEBUG fmt)
23 #else
24 +#if 0
25 #define DBG(fmt...) printk(KERN_DEBUG fmt)
26 +#define RESTORE_DBG(fmt...) printk(KERN_DEBUG fmt)
27 +#else
28 +#define DBG(fmt...) do { } while (0)
29 +#define RESTORE_DBG(fmt...) do { } while (0)
30 +#endif
31
32 #define s3c2410_pm_debug_init() do { } while(0)
33
34 @@ -392,7 +399,7 @@ void s3c2410_pm_do_save(struct sleep_save *ptr, int count)
35 void s3c2410_pm_do_restore(struct sleep_save *ptr, int count)
36 {
37 for (; count > 0; count--, ptr++) {
38 - printk(KERN_DEBUG "restore %p (restore %08lx, was %08x)\n",
39 + RESTORE_DBG("restore %p (restore %08lx, was %08x)\n",
40 ptr->reg, ptr->val, __raw_readl(ptr->reg));
41
42 __raw_writel(ptr->val, ptr->reg);
43 --
44 1.5.6.5
45