ChangeSet 1.2231.1.78, 2005/03/28 19:38:15-08:00, [EMAIL PROTECTED]
[PATCH] x86_64: Change the y2069 bug in the RTC timer code to be a
y2100 bug.
That's ok since x86-64 systems only exist since 2001. More is
unfortunately
not possible because the RTC CMOS only supports two decimal digits.
Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
time.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff -Nru a/arch/x86_64/kernel/time.c b/arch/x86_64/kernel/time.c
--- a/arch/x86_64/kernel/time.c 2005-03-28 21:23:37 -08:00
+++ b/arch/x86_64/kernel/time.c 2005-03-28 21:23:37 -08:00
@@ -551,11 +551,10 @@
BCD_TO_BIN(year);
/*
- * This will work up to Dec 31, 2069.
+ * x86-64 systems only exists since 2002.
+ * This will work up to Dec 31, 2100
*/
-
- if ((year += 1900) < 1970)
- year += 100;
+ year += 2000;
return mktime(year, mon, day, hour, min, sec);
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html