Lines Matching +full:reset +full:- +full:time +full:- +full:sec
1 // SPDX-License-Identifier: GPL-2.0
6 * This file contains the time handling details for PC-style clocks as
15 #include <asm/cpu-features.h>
17 #include <asm/time.h>
24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local
30 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock64()
37 * The PROM will reset the year to either '72 or '73. in read_persistent_clock64()
42 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock64()
47 sec = bcd2bin(sec); in read_persistent_clock64()
55 year += real_year - 72 + 2000; in read_persistent_clock64()
57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
58 ts->tv_nsec = 0; in read_persistent_clock64()
81 /* stop and reset prescaler */ in update_persistent_clock64()
92 * messing with unknown time zones but requires your in update_persistent_clock64()
96 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) in update_persistent_clock64()
97 real_minutes += 30; /* correct for half hour time zone */ in update_persistent_clock64()
100 if (abs(real_minutes - cmos_minutes) < 30) { in update_persistent_clock64()
111 retval = -1; in update_persistent_clock64()
115 * otherwise the DS1287 will not reset the oscillator and will not in update_persistent_clock64()
118 * sheets anyway ... -- Markus Kuhn in update_persistent_clock64()
146 while (i--) in plat_time_init()
152 mips_hpt_frequency = (end - start) * 8; in plat_time_init()
159 * event both at a time. An accurate wall clock is more in plat_time_init()
160 * important than a high-precision interval timer so only in plat_time_init()