<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/i386/isa/pmtimer.c, branch upstream/11.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-02-21T07:16:40Z</updated>
<entry>
<title>Locking for todr got pushed down into inittodr and the client</title>
<updated>2013-02-21T07:16:40Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2013-02-21T07:16:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ebf43195031bef307e8b06b484146401c809203c'/>
<id>urn:sha1:ebf43195031bef307e8b06b484146401c809203c</id>
<content type='text'>
libraries it calls (although some might not be doing it right). We are
serialized right now by giant as well. This means the splsoftclock are
now an anachronism that has no benefit, even marking where locking
needs to happen. Remove them.
</content>
</entry>
<entry>
<title>style(9) nit: remove unnecessary {} pair.</title>
<updated>2008-10-28T04:32:41Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2008-10-28T04:32:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0c3d9d1f6b9754af2342033c98e4d8ba973bfbe3'/>
<id>urn:sha1:0c3d9d1f6b9754af2342033c98e4d8ba973bfbe3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Now that all platforms use genclock, shuffle things around slightly</title>
<updated>2008-04-22T19:38:30Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2008-04-22T19:38:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b4a8ab7bad97bcb374ab6498fe8a3ff50f260d4'/>
<id>urn:sha1:9b4a8ab7bad97bcb374ab6498fe8a3ff50f260d4</id>
<content type='text'>
for better structure.

Much of this is related to &lt;sys/clock.h&gt;, which should really have
been called &lt;sys/calendar.h&gt;, but unless and until we need the name,
the repocopy can wait.

In general the kernel does not know about minutes, hours, days,
timezones, daylight savings time, leap-years and such.  All that
is theoretically a matter for userland only.

Parts of kernel code does however care: badly designed filesystems
store timestamps in local time and RTC chips almost universally
track time in a YY-MM-DD HH:MM:SS format, and sometimes in local
timezone instead of UTC.  For this we have &lt;sys/clock.h&gt;

&lt;sys/time.h&gt; on the other hand, deals with time_t, timeval, timespec
and so on.  These know only seconds and fractions thereof.

Move inittodr() and resettodr() prototypes to &lt;sys/time.h&gt;.
Retain the names as it is one of the few surviving PDP/VAX references.

Move startrtclock() to &lt;machine/clock.h&gt; on relevant platforms, it
is a MD call between machdep.c/clock.c.  Remove references to it
elsewhere.

Remove a lot of unnecessary &lt;sys/clock.h&gt; includes.

Move the machdep.disable_rtc_set sysctl to subr_rtc.c where it belongs.
XXX: should be kern.disable_rtc_set really, it's not MD.
</content>
</entry>
<entry>
<title>First part of a little cleanup in the calendar/timezone/RTC handling.</title>
<updated>2006-10-02T12:59:59Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2006-10-02T12:59:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f645b0b51cd22b129405c2c32dba1d051ae3d99c'/>
<id>urn:sha1:f645b0b51cd22b129405c2c32dba1d051ae3d99c</id>
<content type='text'>
Move relevant variables to &lt;sys/clock.h&gt; and fix #includes as necessary.

Use libkern's much more time- &amp; spamce-efficient BCD routines.
</content>
</entry>
<entry>
<title>Add some missing &lt;sys/module.h&gt; includes which are masked by the</title>
<updated>2004-05-30T17:57:46Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-05-30T17:57:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=41ee9f1c6918a36d2feca1640bde21b420618948'/>
<id>urn:sha1:41ee9f1c6918a36d2feca1640bde21b420618948</id>
<content type='text'>
one on death-row in &lt;sys/kernel.h&gt;
</content>
</entry>
<entry>
<title>Use __FBSDID().</title>
<updated>2003-06-02T16:32:55Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-06-02T16:32:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=006124d8112a0fc227c6bed50c9652198077b183'/>
<id>urn:sha1:006124d8112a0fc227c6bed50c9652198077b183</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add an identify method that creates a pmtimer0 device if it doesn't alreedy</title>
<updated>2002-10-22T17:30:52Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2002-10-22T17:30:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8bbdb8e89fdb2cee05f0c5356e86d3839585dbbe'/>
<id>urn:sha1:8bbdb8e89fdb2cee05f0c5356e86d3839585dbbe</id>
<content type='text'>
exist.  Hints are no longer needed to instantiate a pmtimer(4) device.
</content>
</entry>
<entry>
<title>Reenable RTC interrupts after wakeup.  Some laptops have a problem</title>
<updated>2001-09-04T16:02:06Z</updated>
<author>
<name>Mitsuru IWASAKI</name>
<email>iwasaki@FreeBSD.org</email>
</author>
<published>2001-09-04T16:02:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=db2077f8e1407c2f1b9b32c0221503298ae85ddd'/>
<id>urn:sha1:db2077f8e1407c2f1b9b32c0221503298ae85ddd</id>
<content type='text'>
with system statistics monitoring tools (such as systat, vmstat...)
because of stopping RTC interrupts generation.
Restore all the timers (RTC and i8254) atomically.

Reviewed by:	bde
MFC after:	1 week
</content>
</entry>
<entry>
<title>Add Timer device driver for power management events.</title>
<updated>2000-09-14T22:34:57Z</updated>
<author>
<name>Mitsuru IWASAKI</name>
<email>iwasaki@FreeBSD.org</email>
</author>
<published>2000-09-14T22:34:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2bfb7205bff6a9158d3928ad9b0e54a11f893de9'/>
<id>urn:sha1:2bfb7205bff6a9158d3928ad9b0e54a11f893de9</id>
<content type='text'>
The code for suspend/resume is derived from APM device driver.

Some people suggested the original code is somewhat buggy, but I'd
like to just move it from apm.c without any major changes for the
initial version.  This code should be refined later.

To use pmtimer to adjust time at resume time, add
	device	pmtimer
in your kernel config file, and add
	hint.pmtimer.0.at="isa"
in your device.hints

Reviewed by:	-current, bde
</content>
</entry>
</feed>
