time.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | time.c (00b912b0c88e690b1662067497182454357b18b0) |
---|---|
1/* 2 * (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org), 3 * IBM Corp. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 63 unchanged lines hidden (view full) --- 72 tm->tm_hour = bcd2bin(tm->tm_hour); 73 tm->tm_mday = bcd2bin(tm->tm_mday); 74 tm->tm_mon = bcd2bin(tm->tm_mon); 75 tm->tm_year = bcd2bin(tm->tm_year); 76 } 77 if ((tm->tm_year + 1900) < 1970) 78 tm->tm_year += 100; 79 | 1/* 2 * (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org), 3 * IBM Corp. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 63 unchanged lines hidden (view full) --- 72 tm->tm_hour = bcd2bin(tm->tm_hour); 73 tm->tm_mday = bcd2bin(tm->tm_mday); 74 tm->tm_mon = bcd2bin(tm->tm_mon); 75 tm->tm_year = bcd2bin(tm->tm_year); 76 } 77 if ((tm->tm_year + 1900) < 1970) 78 tm->tm_year += 100; 79 |
80 GregorianDay(tm); | 80 tm->tm_wday = -1; |
81} 82 83int maple_set_rtc_time(struct rtc_time *tm) 84{ 85 unsigned char save_control, save_freq_select; 86 int sec, min, hour, mon, mday, year; 87 88 spin_lock(&rtc_lock); --- 88 unchanged lines hidden --- | 81} 82 83int maple_set_rtc_time(struct rtc_time *tm) 84{ 85 unsigned char save_control, save_freq_select; 86 int sec, min, hour, mon, mday, year; 87 88 spin_lock(&rtc_lock); --- 88 unchanged lines hidden --- |