lkml.org 
[lkml]   [2006]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 15/25] UML: fix uptime
    -stable review patch.  If anyone has any objections, please let us know.
    ------------------

    From: Jeff Dike <jdike@addtoit.com>

    The use of signed instead of unsigned here broke the calculations on
    negative numbers that are involved in calculating wall_to_monotonic.

    Signed-off-by: Jeff Dike <jdike@addtoit.com>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---
    arch/um/kernel/time_kern.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- linux-2.6.17.1.orig/arch/um/kernel/time_kern.c
    +++ linux-2.6.17.1/arch/um/kernel/time_kern.c
    @@ -87,7 +87,7 @@ void timer_irq(union uml_pt_regs *regs)

    void time_init_kern(void)
    {
    - unsigned long long nsecs;
    + long long nsecs;

    nsecs = os_nsecs();
    set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION,
    --
    -
    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: 2006-06-27 22:20    [W:4.145 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site