Lines Matching +full:start +full:- +full:year
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>
24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local
35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64()
37 * The PROM will reset the year to either '72 or '73. in read_persistent_clock64()
38 * Therefore we store the real year separately, in one in read_persistent_clock64()
52 year = bcd2bin(year); 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()
96 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) in update_persistent_clock64()
100 if (abs(real_minutes - cmos_minutes) < 30) { in update_persistent_clock64()
111 retval = -1; in update_persistent_clock64()
118 * sheets anyway ... -- Markus Kuhn in update_persistent_clock64()
130 u32 start, end; in plat_time_init() local
144 start = read_c0_count(); in plat_time_init()
146 while (i--) in plat_time_init()
152 mips_hpt_frequency = (end - start) * 8; in plat_time_init()
160 * important than a high-precision interval timer so only in plat_time_init()