Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-08-24 Thread Michael Gilbert
Thomas Gleixner writes: > That time value should be 64bit, also people might argue, that we are > creating a new issue for the year 2554, i.e 541 years from now. I > don't think we need to worry about that really. We have to leave our > grand-grand-grand..grandchildren (~20 generations from now) a

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-08-24 Thread Michael Gilbert
Thomas Gleixner writes: That time value should be 64bit, also people might argue, that we are creating a new issue for the year 2554, i.e 541 years from now. I don't think we need to worry about that really. We have to leave our grand-grand-grand..grandchildren (~20 generations from now) a few

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-20 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Mon, 3 Jun 2013, John Stultz wrote: > > On 06/03/2013 07:34 AM, Thomas Gleixner wrote: > > > Though even if we fix that we still need to twist our brains around > > > the timespec/timeval based user space interfaces. That's going to be > > > the way more

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-20 Thread Ingo Molnar
* Thomas Gleixner t...@linutronix.de wrote: On Mon, 3 Jun 2013, John Stultz wrote: On 06/03/2013 07:34 AM, Thomas Gleixner wrote: Though even if we fix that we still need to twist our brains around the timespec/timeval based user space interfaces. That's going to be the way more

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-07 Thread Thomas Gleixner
On Mon, 3 Jun 2013, John Stultz wrote: > On 06/03/2013 07:34 AM, Thomas Gleixner wrote: > > Though even if we fix that we still need to twist our brains around > > the timespec/timeval based user space interfaces. That's going to be > > the way more interesting challenge. > > I'm curious if there

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-07 Thread Thomas Gleixner
Tobias, On Tue, 4 Jun 2013, Tobias Waldekranz wrote: > On Mon, Jun 03, 2013 at 04:34:25PM +0200, Thomas Gleixner wrote: > > Just "fixing" some random parts of the code in a "make it work > > somehow" way is a pointless exercise IMO. > > > Now hold on, it is hardly random. On an ARM system, the

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-07 Thread Thomas Gleixner
Tobias, On Tue, 4 Jun 2013, Tobias Waldekranz wrote: On Mon, Jun 03, 2013 at 04:34:25PM +0200, Thomas Gleixner wrote: Just fixing some random parts of the code in a make it work somehow way is a pointless exercise IMO. Now hold on, it is hardly random. On an ARM system, the kernel will

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-07 Thread Thomas Gleixner
On Mon, 3 Jun 2013, John Stultz wrote: On 06/03/2013 07:34 AM, Thomas Gleixner wrote: Though even if we fix that we still need to twist our brains around the timespec/timeval based user space interfaces. That's going to be the way more interesting challenge. I'm curious if there are any

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-04 Thread Tobias Waldekranz
On Mon, Jun 03, 2013 at 04:34:25PM +0200, Thomas Gleixner wrote: > B1;2601;0cOn Mon, 3 Jun 2013, Tobias Waldekranz wrote: > > In ktime_get_update_offsets, calculate the current time in the same > > way as in ktime_get. > > > > On 32-bit systems, the current time is truncated via the call to > >

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-04 Thread Tobias Waldekranz
On Mon, Jun 03, 2013 at 04:34:25PM +0200, Thomas Gleixner wrote: B1;2601;0cOn Mon, 3 Jun 2013, Tobias Waldekranz wrote: In ktime_get_update_offsets, calculate the current time in the same way as in ktime_get. On 32-bit systems, the current time is truncated via the call to ktime_set,

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-03 Thread John Stultz
On 06/03/2013 07:34 AM, Thomas Gleixner wrote: B1;2601;0cOn Mon, 3 Jun 2013, Tobias Waldekranz wrote: In ktime_get_update_offsets, calculate the current time in the same way as in ktime_get. On 32-bit systems, the current time is truncated via the call to ktime_set, the following subtraction

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-03 Thread Thomas Gleixner
B1;2601;0cOn Mon, 3 Jun 2013, Tobias Waldekranz wrote: > In ktime_get_update_offsets, calculate the current time in the same > way as in ktime_get. > > On 32-bit systems, the current time is truncated via the call to > ktime_set, the following subtraction of offs_real will result in an >

[PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-03 Thread Tobias Waldekranz
In ktime_get_update_offsets, calculate the current time in the same way as in ktime_get. On 32-bit systems, the current time is truncated via the call to ktime_set, the following subtraction of offs_real will result in an inaccurate time when the current number of seconds since epoch can no

[PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-03 Thread Tobias Waldekranz
In ktime_get_update_offsets, calculate the current time in the same way as in ktime_get. On 32-bit systems, the current time is truncated via the call to ktime_set, the following subtraction of offs_real will result in an inaccurate time when the current number of seconds since epoch can no

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-03 Thread Thomas Gleixner
B1;2601;0cOn Mon, 3 Jun 2013, Tobias Waldekranz wrote: In ktime_get_update_offsets, calculate the current time in the same way as in ktime_get. On 32-bit systems, the current time is truncated via the call to ktime_set, the following subtraction of offs_real will result in an inaccurate

Re: [PATCH] timekeeping: handle epoch roll-over (2038) on 32-bit systems

2013-06-03 Thread John Stultz
On 06/03/2013 07:34 AM, Thomas Gleixner wrote: B1;2601;0cOn Mon, 3 Jun 2013, Tobias Waldekranz wrote: In ktime_get_update_offsets, calculate the current time in the same way as in ktime_get. On 32-bit systems, the current time is truncated via the call to ktime_set, the following subtraction