<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/ktime.h, branch linux-2.6.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2006-09-06T18:00:02Z</updated>
<entry>
<title>[PATCH] prevent timespec/timeval to ktime_t overflow</title>
<updated>2006-09-06T18:00:02Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2006-09-06T07:03:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96dd7421a06a5bc6eb731323b95efcb2fd864854'/>
<id>urn:sha1:96dd7421a06a5bc6eb731323b95efcb2fd864854</id>
<content type='text'>
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 &gt;=
(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 &lt;tglx@linutronix.de&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Frank v Waveren &lt;fvw@var.cx&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ktime/hrtimer: fix kernel-doc comments</title>
<updated>2006-06-25T17:01:23Z</updated>
<author>
<name>Randy Dunlap</name>
</author>
<published>2006-06-25T12:49:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa9799e33d362aeca4555cd6318735bab1c04d16'/>
<id>urn:sha1:fa9799e33d362aeca4555cd6318735bab1c04d16</id>
<content type='text'>
Fix kernel-doc formatting in ktime.h and hrtimer.[ch] files.

Signed-off-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] hrtimers: remove DEFINE_KTIME and ktime_to_clock_t()</title>
<updated>2006-03-26T16:57:03Z</updated>
<author>
<name>Roman Zippel</name>
</author>
<published>2006-03-26T09:38:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=272705c5979c114e63dbfcd28ea15093038a4c42'/>
<id>urn:sha1:272705c5979c114e63dbfcd28ea15093038a4c42</id>
<content type='text'>
Now that it_real_value is gone, the last user of DEFINE_KTIME and
ktime_to_clock_t are also gone, so remove it before someone starts using it
again.

Signed-off-by: Roman Zippel &lt;zippel@linux-m68k.org&gt;
Acked-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] hrtimer: fix multiple macro argument expansion</title>
<updated>2006-02-15T23:32:22Z</updated>
<author>
<name>Roman Zippel</name>
</author>
<published>2006-02-15T23:17:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2ee9dbfad14ba8e34a589d552ddc67300a26bec'/>
<id>urn:sha1:b2ee9dbfad14ba8e34a589d552ddc67300a26bec</id>
<content type='text'>
For two macros the arguments were expanded twice, change them to inline
functions to avoid it.

Signed-off-by: Roman Zippel &lt;zippel@linux-m68k.org&gt;
Acked-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] hrtimers: add back lost credit lines</title>
<updated>2006-02-01T16:53:13Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2006-02-01T11:05:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66188fae3bf7f8dd951e2291d2a81888ed1b65de'/>
<id>urn:sha1:66188fae3bf7f8dd951e2291d2a81888ed1b65de</id>
<content type='text'>
At some point we added credits to people who actively helped to bring
k/hr-timers along.  This was lost in the big code revamp.  Add it back.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[hrtimer] Change resolution storage to ktime_t format</title>
<updated>2006-01-12T10:36:14Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2006-01-12T10:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2787630c1abb075c935cf47e91beb7c656f48c4'/>
<id>urn:sha1:e2787630c1abb075c935cf47e91beb7c656f48c4</id>
<content type='text'>
Change the storage format of the per base resolution to ktime_t to
make it easier accessible in the hrtimers code.

Change the resolution from (NSEC_PER_SEC/HZ) to TICK_NSEC as Roman
pointed out. TICK_NSEC is closer to the real resolution.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] hrtimer: hrtimer core code</title>
<updated>2006-01-10T16:01:37Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2006-01-10T04:52:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0a3132963db68f1fbbd0e316b73de100fee3f08'/>
<id>urn:sha1:c0a3132963db68f1fbbd0e316b73de100fee3f08</id>
<content type='text'>
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 &lt;tglx@linutronix.de&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] hrtimer: introduce ktime_t time format</title>
<updated>2006-01-10T16:01:37Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2006-01-10T04:52:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97fc79f97b1111c80010d34ee66312b88f531e41'/>
<id>urn:sha1:97fc79f97b1111c80010d34ee66312b88f531e41</id>
<content type='text'>
- 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 &lt;tglx@linutronix.de&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
