Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | timecompare: fix half-Y2K38 problem in timecompare_update while calculating ↵ | Barry Song | 2009-12-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | offset ktime will overflow from 03:14:07 UTC on Tuesday, 19 January 2038, ktime_add() in timecompare_update() will overflow a half earlier. As a result, wrong offset will be gotten, then cause some strange problems. Signed-off-by: Barry Song <21cnbao@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: Patrick Ohly <patrick.ohly@intel.com> Cc: David S. Miller <davem@davemloft.net> Cc: John Stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> | ||||
* | clocksource/timecompare: Fix symbol exports to be GPL'd. | David S. Miller | 2009-11-12 | 1 | -3/+3 |
| | | | | | | Noticed by Thomas GLeixner. Signed-off-by: David S. Miller <davem@davemloft.net> | ||||
* | timecompare: generic infrastructure to map between two time bases | Patrick Ohly | 2009-02-16 | 1 | -0/+191 |
Mapping from a struct timecounter to a time returned by functions like ktime_get_real() is implemented. This is sufficient to use this code in a network device driver which wants to support hardware time stamping and transformation of hardware time stamps to system time. The interface could have been made more versatile by not depending on a time counter, but this wasn't done to avoid writing glue code elsewhere. The method implemented here is the one used and analyzed under the name "assisted PTP" in the LCI PTP paper: http://www.linuxclustersinstitute.org/conferences/archive/2008/PDF/Ohly_92221.pdf Acked-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> |