* [uml-devel] [PATCH 15/25] UML: fix uptime
[not found] <20060627200745.771284000@sous-sol.org>
@ 2006-06-27 7:00 ` Chris Wright
0 siblings, 0 replies; only message in thread
From: Chris Wright @ 2006-06-27 7:00 UTC (permalink / raw)
To: linux-kernel, stable
Cc: akpm, Theodore Ts'o, Zwane Mwaikambo, user-mode-linux-devel,
Jeff Dike, Justin Forbes, torvalds, Chris Wedgwood, Randy Dunlap,
Dave Jones, Chuck Wolber, alan
[-- Attachment #1: uml-fix-uptime.patch --]
[-- Type: text/plain, Size: 1275 bytes --]
-stable review patch. If anyone has any objections, please let us know.
------------------
From: Jeff Dike <jdike@addtoit.com>
The use of signed instead of unsigned here broke the calculations on
negative numbers that are involved in calculating wall_to_monotonic.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
---
arch/um/kernel/time_kern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.17.1.orig/arch/um/kernel/time_kern.c
+++ linux-2.6.17.1/arch/um/kernel/time_kern.c
@@ -87,7 +87,7 @@ void timer_irq(union uml_pt_regs *regs)
void time_init_kern(void)
{
- unsigned long long nsecs;
+ long long nsecs;
nsecs = os_nsecs();
set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION,
--
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread