]> 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)
commit7e672fae1b36fd447df1b3bbddd644ee40fae837
tree6262629f56ef359531228b0360cea1b841fca681
parent8afd4158e68efd77730d4a5a802e40efae2c749a
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