disable interrput under ppc?

Scott Wood scottwood at freescale.com
Thu Sep 6 02:31:51 EST 2007


On Wed, Sep 05, 2007 at 10:00:46AM +0800, Wang, Baojun wrote:
> hw_enable_irq() and hw_disable_irq() is exactly the same as 
> local_irq_enable()/local_irq_disable(), but the output shows while running 
> hw_eable_irq() (at that point irq is disabled), the rest of the code is 
> blocked, and I don't know why:
> 
> output:
> [  172.049381] sync_root_events: looping!
> [  172.053159] sync_root_events: looping 2!
> [  172.057094] sync_root_events: looping 3!
> [  172.061027] hw_irq_disabled?: 1
> [  172.997338] sync_root_events: looping!
> [  173.001095] sync_root_events: looping 2!
> [  173.005028] sync_root_events: looping 3!
> [  173.008961] hw_irq_disabled?: 1

What did you expect the output to be?  I assume that you're taking an
interrupt after you enable interrupts?

-Scott


More information about the Linuxppc-embedded mailing list