rtc: fix alarm read and set offset
Alexandre Belloni authored
The offset needs to be added after reading the alarm value.

It also needs to be subtracted after the now < alarm test.
Tested-by: default avatarJon Hunter <jonathanh@nvidia.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
fd6792bb
Name Last commit Last update
Documentation Merge tag 'for-linus-20180616' of git://git.kernel.dk/linux-block
LICENSES LICENSES: Add Linux-OpenIB license text
arch Merge tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental
block Merge tag 'for-linus-20180616' of git://git.kernel.dk/linux-block
certs docs: Fix some broken references
crypto docs: Fix some broken references
drivers rtc: fix alarm read and set offset
firmware kbuild: remove all dummy assignments to obj-
fs Merge tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental
include Merge tag 'for-linus-20180616' of git://git.kernel.dk/linux-block
init Merge tag 'kbuild-v4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
ipc ipc: use new return type vm_fault_t
kernel Merge tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental
lib docs: Fix some broken references
mm mm: fix oom_kill event handling
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
samples Merge tag 'vfio-v4.18-rc1' of git://github.com/awilliam/linux-vfio
scripts scripts/documentation-file-ref-check: check tools/*/Documentation
security docs: Fix some broken references
sound docs: Fix some broken references
tools Merge tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental
usr kbuild: rename built-in.o to built-in.a
virt Merge tag 'overflow-v4.18-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
.clang-format clang-format: add configuration file
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore Merge tag 'kbuild-v4.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
.mailmap Merge branch 'asoc-4.17' into asoc-4.18 for compress dependencies
COPYING COPYING: use the new text with points to the license files
CREDITS MAINTAINERS/CREDITS: Drop METAG ARCHITECTURE
Kbuild Merge tag 'kbuild-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Kconfig kconfig: add basic helper macros to scripts/Kconfig.include
MAINTAINERS Merge tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental
Makefile Linux 4.18-rc1
README Docs: Added a pointer to the formatted docs to README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.