2.4.0-test8: Alpha RTC clean-ups
Quoted 19 lines · Jan-Benedict Glaw
Quoted 7 lines · Maciej W. Rozycki
Quoted 4 lines · Jan-Benedict Glaw
Instead of having hard-coded values, we should maybe do something more variable like:
if (year >= (20 +YEARS_SINCE_2000) && year < (48 +YEARS_SINCE_2000)...Quoted 6 lines
This looks reasonable.
Quoted 2 lines
This applies to other platforms using different epoch vaules as well, of course...
Alpha appears to be the only one.
./driver/char/rtc.c:rtc_init()
#ifdefined(__alpha__)||defined(__mips__)
[...]
Quoted 8 lines
MIPS does that as well
_inthe wrongway_compared tortc.c:
./arch/mips/dev/time.c:time_init()
/*
* The DECstation RTC is used as a TOY (Time Of Year).
* The PROM will reset the year to either '70, '71 or '72.
* This hack will only work until Dec 31 2001. */
year += 1928;
This has already been fixed. In any case the DECstation RTC stuff is so weird, don't try to explain it rationally ...
Quoted 1 line
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
Rechtschreibdeformation ...
Ralf