patch-1.3.2 linux/kernel/time.c

Next file: linux/mm/filemap.c
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.1/linux/kernel/time.c linux/kernel/time.c
@@ -103,6 +103,13 @@
 	    BCD_TO_BIN(mon);
 	    BCD_TO_BIN(year);
 	  }
+#if defined(__alpha__) && defined(CONFIG_PCI)
+	/*
+	 * The meaning of life, the universe, and everything. Plus
+	 * this makes the year come out right.
+	 */
+	year -= 42;
+#endif
 	if ((year += 1900) < 1970)
 		year += 100;
 	xtime.tv_sec = mktime(year, mon, day, hour, min, sec);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this