14 #include <asm/cpu-features.h>
43 spin_unlock_irqrestore(&
rtc_lock, flags);
54 year += real_year - 72 + 2000;
70 int real_seconds, real_minutes, cmos_minutes;
71 unsigned char save_control, save_freq_select;
85 cmos_minutes =
bcd2bin(cmos_minutes);
93 real_seconds = nowtime % 60;
94 real_minutes = nowtime / 60;
95 if (((
abs(real_minutes - cmos_minutes) + 15) / 30) & 1)
99 if (
abs(real_minutes - cmos_minutes) < 30) {
101 real_seconds =
bin2bcd(real_seconds);
102 real_minutes =
bin2bcd(real_minutes);
108 "set_rtc_mmss: can't update from %d to %d\n",
109 cmos_minutes, real_minutes);