Re: ds1620: replace schedule_timeout() with msleep()

From: Russell King (rmk+lkml_at_arm.linux.org.uk)
Date: 11/29/04

  • Next message: Pavel Machek: "Re: Suspend 2 merge"
    Date:	Mon, 29 Nov 2004 22:42:40 +0000
    To: Jesper Juhl <juhl-lkml@dif.dk>
    
    

    On Mon, Nov 29, 2004 at 11:37:48PM +0100, Jesper Juhl wrote:
    > On Mon, 29 Nov 2004, Domen Puncer wrote:
    > > It's right:
    > > schedule_timeout(2*HZ) sleeps for 2 seconds;
    > > msleep(2000) sleeps for 2000 miliseconds, and does not depend on what
    > > HZ is.
    >
    > It seems I didn't understand schedule_timeout() properly, thank you for
    > the clarification.

    As part-author of this driver, and actually of this particular bit
    of code, a 2 second delay is intented here. The fan needs to be run
    at full power in order to start running, so the idea here is to give
    it full power for 2 seconds and then to restore the temperature trip
    points to the configured values.

    -- 
    Russell King
     Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
     maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                     2.6 Serial core
    -
    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: Pavel Machek: "Re: Suspend 2 merge"

    Relevant Pages

    • Re: ds1620: replace schedule_timeout() with msleep()
      ... >> the clarification. ... > As part-author of this driver, and actually of this particular bit ... > at full power in order to start running, so the idea here is to give ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Hotplug for device power state changes
      ... > driver managing the power state of its devices (according to some ... > implement drivers that are more actively involved in managing power ... core driver level, if you wanted to do it all. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Solving suspend-level confusion
      ... > the driver but not spin down and device_suspendwhen I want to power ... much okay, but we need to switch to enums or char * or something and ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Fix Device Power Management States
      ... Yup, but class devices don't follow the bus topology, do they? ... The ordering of the calls is up the power ... driver bound and still don't want to be powered down... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • CHAMPCAR: Team Australia clarifies Power in accident
      ... CLARIFICATION FROM TEAM AUSTRALIA ... regarding driver Will Power. ...
      (rec.autos.sport.info)