OpenBSD CVS

CVS log for src/sys/dev/clock_subr.h


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 12 13:39:50 2022 UTC (19 months, 4 weeks ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Extend struct todr_chip_handle with a todr_quality member.  This allows us
to assign a quality to RTC implementation and pick the "best" RTC if a
system has multiple RTCs (or multiple interfaces to an RTC).  This allows
us to prefer a battery-backed I2C RTC over an RTC that is part of the SoC
which is only running of the SoC is powered.  It also allows us to
work around issues with firmware RTC interfaces that may lie to us or
even crash the system.

This change makes sure the todr_quality member of the struct is always
initialized.  In most cases the quality will be set to zero; further
adjustments of the quality for specific subsystems/architectures will follow.

ok cheloha@, patrick@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Apr 24 10:15:15 2021 UTC (3 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.6: +1 -7 lines
Diff to previous 1.6 (colored)

Remove unused function pointers from `todr_handle'.

from miod@

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 17 13:21:20 2020 UTC (4 years ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Add function for attaching RTC drivers, to reduce direct use
of todr_handle.

OK kettenis@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:14 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.4: +1 -8 lines
Diff to previous 1.4 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 19 15:13:35 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.3: +1 -30 lines
Diff to previous 1.3 (colored)

move clock_subr.c to a better place, and now it is always in the kernel
so that things can use it; tested on all architectures; ok kettenis

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:42:15 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync UBC branch to -current

Revision 1.1.12.2 / (download) - annotate - [select for diffs], Thu Mar 28 12:29:44 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1.12.1: +3 -3 lines
Diff to previous 1.1.12.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Merge in -current from about a week ago

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 14 01:26:52 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

First round of __P removal in sys

Revision 1.1.12.1 / (download) - annotate - [select for diffs], Wed Oct 31 03:22:40 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.1: +36 -1 lines
Diff to previous 1.1 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 19 05:34:05 2001 UTC (22 years, 9 months ago) by art
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.1: +36 -1 lines
Diff to previous 1.1 (colored)

generic interface for time-of-day clock devices.
From NetBSD

Revision 1.1 / (download) - annotate - [select for diffs], Tue Sep 9 13:08:18 1997 UTC (26 years, 9 months ago) by maja
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Branch point for: SMP

Code imported from NetBSD. -moj

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.