Skip to content

Commit

Permalink
drivers/char: comment fix: CMOS RTC update code is now in kernel/time…
Browse files Browse the repository at this point in the history
…/ntp.c

This commit updates some comments to reflect the fact that code
for periodically updating the CMOS RTC was moved to:

  kernel/time/ntp.c

probably by this commit:

  commit 8264445
  Author: Thomas Gleixner <[email protected]>
  Date:   Sat Jul 21 04:37:37 2007 -0700

      NTP: move the cmos update code into ntp.c

      i386 and sparc64 have the identical code to update the cmos clock.  Move it
      into kernel/time/ntp.c as there are other architectures coming along with the
      same requirements.

Signed-off-by: Michael Witten <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
mfwitten authored and Jiri Kosina committed Feb 3, 2012
1 parent 982a598 commit 5196d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/char/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
/* Note that *all* calls to CMOS_READ and CMOS_WRITE must be done with
* rtc_lock held. Due to the index-port/data-port design of the RTC, we
* don't want two different things trying to get to it at once. (e.g. the
* periodic 11 min sync from time.c vs. this driver.)
* periodic 11 min sync from kernel/time/ntp.c vs. this driver.)
*/

#include <linux/types.h>
Expand Down
4 changes: 2 additions & 2 deletions drivers/char/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
* Note that *all* calls to CMOS_READ and CMOS_WRITE are done with
* interrupts disabled. Due to the index-port/data-port (0x70/0x71)
* design of the RTC, we don't want two different things trying to
* get to it at once. (e.g. the periodic 11 min sync from time.c vs.
* this driver.)
* get to it at once. (e.g. the periodic 11 min sync from
* kernel/time/ntp.c vs. this driver.)
*/

#include <linux/interrupt.h>
Expand Down

0 comments on commit 5196d20

Please sign in to comment.