Commit f9d05f3e authored by Richard Purdie's avatar Richard Purdie Committed by Russell King

[ARM PATCH] 2510/1: PXA: Disable pxa_gpio_irq_type printks

Patch from Richard Purdie

The printks inside pxa_gpio_irq_type damage performance and are of little value in a production kernel. They should be disabled.

Signed-off-by: Richard PurdieSigned-off-by: Nicolas Pitre
Signed-off-by: Russell King
parent f33e69ef
...@@ -97,23 +97,23 @@ static int pxa_gpio_irq_type(unsigned int irq, unsigned int type) ...@@ -97,23 +97,23 @@ static int pxa_gpio_irq_type(unsigned int irq, unsigned int type)
type = __IRQT_RISEDGE | __IRQT_FALEDGE; type = __IRQT_RISEDGE | __IRQT_FALEDGE;
} }
printk(KERN_DEBUG "IRQ%d (GPIO%d): ", irq, gpio); /* printk(KERN_DEBUG "IRQ%d (GPIO%d): ", irq, gpio); */
pxa_gpio_mode(gpio | GPIO_IN); pxa_gpio_mode(gpio | GPIO_IN);
if (type & __IRQT_RISEDGE) { if (type & __IRQT_RISEDGE) {
printk("rising "); /* printk("rising "); */
__set_bit (gpio, GPIO_IRQ_rising_edge); __set_bit (gpio, GPIO_IRQ_rising_edge);
} else } else
__clear_bit (gpio, GPIO_IRQ_rising_edge); __clear_bit (gpio, GPIO_IRQ_rising_edge);
if (type & __IRQT_FALEDGE) { if (type & __IRQT_FALEDGE) {
printk("falling "); /* printk("falling "); */
__set_bit (gpio, GPIO_IRQ_falling_edge); __set_bit (gpio, GPIO_IRQ_falling_edge);
} else } else
__clear_bit (gpio, GPIO_IRQ_falling_edge); __clear_bit (gpio, GPIO_IRQ_falling_edge);
printk("edges\n"); /* printk("edges\n"); */
GRER(gpio) = GPIO_IRQ_rising_edge[idx] & GPIO_IRQ_mask[idx]; GRER(gpio) = GPIO_IRQ_rising_edge[idx] & GPIO_IRQ_mask[idx];
GFER(gpio) = GPIO_IRQ_falling_edge[idx] & GPIO_IRQ_mask[idx]; GFER(gpio) = GPIO_IRQ_falling_edge[idx] & GPIO_IRQ_mask[idx];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment