| From f00a56771b7ec542dd316fd70e99df5cbe822f44 Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Fri, 3 Jul 2009 08:44:47 -0500 |
| Subject: [PATCH] ARM: badge4: Move printk out of irq_disabled region |
| |
| commit 30d18e076a68c1f50647c008d14f6b1c9303d40d in tip. |
| |
| Reduce latencies on -rt |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| |
| diff --git a/arch/arm/mach-sa1100/badge4.c b/arch/arm/mach-sa1100/badge4.c |
| index 051ec0f..fd8ceef 100644 |
| --- a/arch/arm/mach-sa1100/badge4.c |
| +++ b/arch/arm/mach-sa1100/badge4.c |
| @@ -240,15 +240,22 @@ void badge4_set_5V(unsigned subsystem, int on) |
| /* detect on->off and off->on transitions */ |
| if ((!old_5V_bitmap) && (badge4_5V_bitmap)) { |
| /* was off, now on */ |
| - printk(KERN_INFO "%s: enabling 5V supply rail\n", __func__); |
| GPSR = BADGE4_GPIO_PCMEN5V; |
| } else if ((old_5V_bitmap) && (!badge4_5V_bitmap)) { |
| /* was on, now off */ |
| - printk(KERN_INFO "%s: disabling 5V supply rail\n", __func__); |
| GPCR = BADGE4_GPIO_PCMEN5V; |
| } |
| |
| local_irq_restore(flags); |
| + |
| + /* detect on->off and off->on transitions */ |
| + if ((!old_5V_bitmap) && (badge4_5V_bitmap)) { |
| + /* was off, now on */ |
| + printk(KERN_INFO "%s: enabling 5V supply rail\n", __FUNCTION__); |
| + } else if ((old_5V_bitmap) && (!badge4_5V_bitmap)) { |
| + /* was on, now off */ |
| + printk(KERN_INFO "%s: disabling 5V supply rail\n", __FUNCTION__); |
| + } |
| } |
| EXPORT_SYMBOL(badge4_set_5V); |
| |
| -- |
| 1.7.1.1 |
| |