]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso: minor ABI fix for clock_getres
authorNathan Lynch <nathan_lynch@mentor.com>
Tue, 24 Feb 2015 23:21:07 +0000 (17:21 -0600)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Feb 2015 18:13:51 +0000 (18:13 +0000)
commit71f23cd0c4dcc7312601dc78f87851766621b3d1
tree6262629f56ef359531228b0360cea1b841fca681
parent443bc8ac92309376db2476cb0987b4a911e4d9e3
arm64: vdso: minor ABI fix for clock_getres

The vdso implementation of clock_getres currently returns 0 (success)
whenever a null timespec is provided by the caller, regardless of the
clock id supplied.

This behavior is incorrect.  It should fall back to syscall when an
unrecognized clock id is passed, even when the timespec argument is
null.  This ensures that clock_getres always returns an error for
invalid clock ids.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/vdso/gettimeofday.S