07 Sep, 2006

1 commit

  • Frank v. Waveren pointed out that on 64bit machines the timespec to
    ktime_t conversion might overflow. This is also true for timeval to
    ktime_t conversions. This breaks a "sleep inf" on 64bit machines.

    While a timespec/timeval with tx.sec = MAX_LONG is valid by specification
    the internal representation of ktime_t is based on nanoseconds. The
    conversion of seconds to nanoseconds overflows for seconds values >=
    (MAX_LONG / NSEC_PER_SEC).

    Check the seconds argument to the conversion and limit it to the maximum
    time which can be represented by ktime_t.

    Signed-off-by: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: Frank v Waveren
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

26 Jun, 2006

1 commit


27 Mar, 2006

1 commit


16 Feb, 2006

1 commit


02 Feb, 2006

1 commit


12 Jan, 2006

1 commit


11 Jan, 2006

2 commits

  • hrtimer subsystem core. It is initialized at bootup and expired by the timer
    interrupt, but is otherwise not utilized by any other subsystem yet.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     
  • - introduce ktime_t: nanosecond-resolution time format.

    - eliminate the plain s64 scalar type, and always use the union.
    This simplifies the arithmetics. Idea from Roman Zippel.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner