set_rtc_mmss() of arch/mips/kenrel/time.c
I'm reading kernel source for mips architecture. But can not realize the meaning of the following part of set_rtc_mmss() function in arch/mips/kenrel/time.c
static int set_rtc_mmss(unsigned long nowtime)
{
: /* * since we're only adjusting minutes and seconds, * don't interfere with hour overflow. This avoids * messing with unknown time zones but requires your * RTC not to be off by more than 15 minutes */ real_seconds = nowtime % 60; real_minutes = nowtime / 60; if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) real_minutes += 30; /* correct for half hour time zone */ real_minutes %= 60; :
Please anyone explain me.
Thank you.
Masami Komiya