]> git.baikalelectronics.ru Git - kernel.git/commit
tools: timer: add rtctest_setdate
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 19 Jun 2017 09:36:20 +0000 (11:36 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 9 Jul 2017 20:00:54 +0000 (22:00 +0200)
commitade30be74dbae5d9533b50be727a6de01dd9a42c
treed052d5d18e447e3df1bad0fca8d8ec687603bd8d
parentd47456b6c01cd10cb9dd65b3240c47f5721b6dc5
tools: timer: add rtctest_setdate

This tool allow to set directly the time and date to a RTC device.

Unlike other tools isn't doens't use "struct timeval" or "time_t"
so it is safe for 32bits platforms when testing for y2038/2106 bug.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
tools/testing/selftests/timers/Makefile
tools/testing/selftests/timers/rtctest_setdate.c [new file with mode: 0644]