|
|
| version 1.13, 2004/02/21 06:37:08 | version 1.14, 2004/04/04 08:00:06 |
|---|---|
| Line 810 wrong_time: | Line 810 wrong_time: |
| void | void |
| resettodr() | resettodr() |
| { | { |
| unsigned long tm; | struct timeval tv; |
| int y, m; | unsigned long tm; |
| int m; | |
| int y; | |
| if (disable_rtc_set) | if (disable_rtc_set) |
| return; | return; |
| tm = time_second; | microtime(&tv); |
| tm = tv.tv_sec; | |
| crit_enter(); | crit_enter(); |
| /* Disable RTC updates and interrupts. */ | /* Disable RTC updates and interrupts. */ |