lkml.org 
[lkml]   [2007]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 12/32] acpi-thermal: fix mod_timer() interval
    -stable review patch.  If anyone has any objections, please let us know.
    ---------------------

    From: Andrew Morton <akpm@linux-foundation.org>

    Use relative time, not absolute. Discovered by Jung-Ik (John) Lee
    <jilee@google.com>.

    Cc: Jung-Ik (John) Lee <jilee@google.com>
    Acked-by: Len Brown <lenb@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/acpi/thermal.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- linux-2.6.20.13.orig/drivers/acpi/thermal.c
    +++ linux-2.6.20.13/drivers/acpi/thermal.c
    @@ -758,7 +758,8 @@ static void acpi_thermal_check(void *dat
    del_timer(&(tz->timer));
    } else {
    if (timer_pending(&(tz->timer)))
    - mod_timer(&(tz->timer), (HZ * sleep_time) / 1000);
    + mod_timer(&(tz->timer),
    + jiffies + (HZ * sleep_time) / 1000);
    else {
    tz->timer.data = (unsigned long)tz;
    tz->timer.function = acpi_thermal_run;
    --
    -
    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/

    \
     
     \ /
      Last update: 2007-06-08 09:23    [W:3.089 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site