Re: Fw: [RFC] Strange code in cpu_idle()

From: Zwane Mwaikambo (zwane_at_arm.linux.org.uk)
Date: 12/06/04

  • Next message: Gang Xu: "RSA in kernel"
    Date:	Mon, 6 Dec 2004 09:47:04 -0700 (MST)
    To: "Paul E. McKenney" <paulmck@us.ibm.com>
    
    

    On Mon, 6 Dec 2004, Paul E. McKenney wrote:

    > I am not going to claim to thoroughly understand the power-management
    > code, but do have an additional question.
    >
    > What happens if the processor became aware of a new grace period just
    > before entering pm_idle? I could imagine this code simply refusing
    > to power down the processor if there was a pending grace period, but
    > I don't see any sign of this. I could also imagine somehow deferring
    > interrupts until pm_idle exits. I don't see anything that looks like
    > it does this, but don't claim to be any sort of power-management
    > expert.

    Are you referring to the synchronize_kernel side? That's basically unload
    module path so it's ok if it sits there for a bit, but it should only last
    for as long as the next interrupt, which would be a pretty short perid
    considering HZ=1000. But the usage still has a race and hence invalid as
    pointed out by Dipankar

    Thanks,
            Zwane

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Gang Xu: "RSA in kernel"

    Relevant Pages

    • APIC problems on VIA box
      ... I first noticed this on 2.6.0test3: on my Tyan KT133 SMP box all the interrupts ... LOC: 2314693 2314783 ... help debug the problem. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: CFQ + 2.6.13-rc4-RT-V0.7.52-02 = BUG: scheduling with irqs disabled
      ... which should all have stopped by the time we execute do_exit. ... > interrupts. ... queue typically bound to one of the pdflush threads which ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: mouse still losing sync and thus jumping around
      ... >> indeed producing worse results, the second one should work better. ... >> and letting me know if it gives better results. ... Yes, It usually happens either under high load, when mouse interrupts are ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC/PATCH] Kdump: Disabling PCI interrupts in capture kernel
      ... > VGA contorller. ... VGA does not use interrupts for normal operation, even in graphics mode. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] fix platform_rename_gsi related ia32 build breakage
      ... There's a huge difference between an acronyn that is well-established, ... The same way we don't call disks DASD devices do we not call interrupts ... and what's the first hit? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)