aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/zram-swap/Makefile
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2020-07-08 09:18:14 +0100
committerPetr Štetiar <ynezz@true.cz>2020-07-11 13:33:28 +0200
commitc5c652e5ad97335eb3968dab6be0d7152e22893b (patch)
treef67e7445de0bf2d8e33699a09d28154ccdcef0a3 /package/system/zram-swap/Makefile
parentf61110e8f21c0d205ba73f2b8ced9dd8fbc50853 (diff)
downloadupstream-c5c652e5ad97335eb3968dab6be0d7152e22893b.tar.gz
upstream-c5c652e5ad97335eb3968dab6be0d7152e22893b.tar.bz2
upstream-c5c652e5ad97335eb3968dab6be0d7152e22893b.zip
busybox: use CLOCK_MONOTONIC instead of gettimeofday
The clock_gettime(CLOCK_MONOTONIC) syscall exists for so long that the first kernel version to support it is not even specified in the man page [1]. Let's enable it on BusyBox by default. Otherwise, gettimeofday will be used instead, which will give wrong results if the date/time is reset (time moving backwards). [1] https://linux.die.net/man/2/clock_gettime Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'package/system/zram-swap/Makefile')
0 files changed, 0 insertions, 0 deletions