Messages in this thread | | | Date | Wed, 22 Jul 2009 09:10:39 +0200 | From | Pavel Machek <> | Subject | Re: [linux-pm] [PATCH] [suspend] pci_raw_set_power_state: replace msleep by udelay in resuming procedure |
| |
> > Perhaps it's necessary to annotate your timer interrupts appropriately so that > > they are not disabled during suspend? > > Thanks very much, The IRQF_TIMER flag works for me, so the replacement > of msleep by udelay is not needed. > > [This source code is not ready to upstream, herein, just a prompt to the > other guys who will meet the same problem.]
Unlike the other patch, this one actually looks ok.
> Adding IRQF_TIMER to the interupt flags when requesting the mfgpt timer > interrupts solves the problem. > > Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> > --- > arch/mips/loongson/common/cs5536/cs5536_mfgpt.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/mips/loongson/common/cs5536/cs5536_mfgpt.c > b/arch/mips/loongson/common/cs5536/cs5536_mfgpt.c > index 1a518ec..5b8fa9f 100644 > --- a/arch/mips/loongson/common/cs5536/cs5536_mfgpt.c > +++ b/arch/mips/loongson/common/cs5536/cs5536_mfgpt.c > @@ -133,7 +133,7 @@ static irqreturn_t timer_interrupt(int irq, void > *dev_id) > > static struct irqaction irq5 = { > .handler = timer_interrupt, > - .flags = IRQF_DISABLED | IRQF_NOBALANCING, > + .flags = IRQF_TIMER | IRQF_DISABLED | IRQF_NOBALANCING, > .name = "timer" > };
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
| |