1. 30 1月, 2013 2 次提交
  2. 29 1月, 2013 1 次提交
  3. 28 1月, 2013 2 次提交
  4. 24 1月, 2013 2 次提交
  5. 23 1月, 2013 11 次提交
  6. 22 1月, 2013 4 次提交
  7. 21 1月, 2013 1 次提交
  8. 19 1月, 2013 5 次提交
  9. 18 1月, 2013 3 次提交
  10. 17 1月, 2013 8 次提交
  11. 16 1月, 2013 1 次提交
    • H
      s390/time: fix sched_clock() overflow · ed4f2094
      Heiko Carstens 提交于
      Converting a 64 Bit TOD format value to nanoseconds means that the value
      must be divided by 4.096. In order to achieve that we multiply with 125
      and divide by 512.
      When used within sched_clock() this triggers an overflow after appr.
      417 days. Resulting in a sched_clock() return value that is much smaller
      than previously and therefore may cause all sort of weird things in
      subsystems that rely on a monotonic sched_clock() behaviour.
      
      To fix this implement a tod_to_ns() helper function which converts TOD
      values without overflow and call this function from both places that
      open coded the conversion: sched_clock() and kvm_s390_handle_wait().
      
      Cc: stable@kernel.org
      Reviewed-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      ed4f2094