summaryrefslogtreecommitdiffhomepage
path: root/vdso
diff options
context:
space:
mode:
Diffstat (limited to 'vdso')
-rw-r--r--vdso/check_vdso.py2
-rw-r--r--vdso/vdso.cc5
2 files changed, 4 insertions, 3 deletions
diff --git a/vdso/check_vdso.py b/vdso/check_vdso.py
index e41b09709..b3ee574f3 100644
--- a/vdso/check_vdso.py
+++ b/vdso/check_vdso.py
@@ -30,7 +30,7 @@ def PageRoundDown(addr):
addr: An address.
Returns:
- The address rounded down to thie nearest page.
+ The address rounded down to the nearest page.
"""
return addr & ~(PAGE_SIZE - 1)
diff --git a/vdso/vdso.cc b/vdso/vdso.cc
index 0bded13ac..8bb80a7a4 100644
--- a/vdso/vdso.cc
+++ b/vdso/vdso.cc
@@ -33,8 +33,8 @@ int __common_clock_gettime(clockid_t clock, struct timespec* ts) {
ret = ClockRealtime(ts);
break;
- // Fallthrough, CLOCK_BOOTTIME is an alias for CLOCK_MONOTONIC
case CLOCK_BOOTTIME:
+ // Fallthrough, CLOCK_BOOTTIME is an alias for CLOCK_MONOTONIC
case CLOCK_MONOTONIC:
ret = ClockMonotonic(ts);
break;
@@ -124,7 +124,8 @@ extern "C" int __kernel_clock_getres(clockid_t clock, struct timespec* res) {
switch (clock) {
case CLOCK_REALTIME:
- case CLOCK_MONOTONIC: {
+ case CLOCK_MONOTONIC:
+ case CLOCK_BOOTTIME: {
res->tv_sec = 0;
res->tv_nsec = 1;
break;