diff options
| author | Christophe Leroy <[email protected]> | 2020-02-07 12:39:04 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2020-02-17 19:12:18 +0000 |
| commit | e876f0b69dc993e86ca7795e63e98385aa9a7ef3 (patch) | |
| tree | c8f303d2886451c94a8cb67beec824145b28087b /drivers/clocksource/arm_arch_timer.c | |
| parent | lib/vdso: Allow architectures to override the ns shift operation (diff) | |
| download | kernel-e876f0b69dc993e86ca7795e63e98385aa9a7ef3.tar.gz kernel-e876f0b69dc993e86ca7795e63e98385aa9a7ef3.zip | |
lib/vdso: Allow architectures to provide the vdso data pointer
On powerpc, __arch_get_vdso_data() clobbers the link register, requiring
the caller to save it.
As the parent function already has to set a stack frame and saves the link
register before calling the C vdso function, retrieving the vdso data
pointer there is less overhead.
Split out the functional code from the __cvdso.*() interfaces into new
static functions which can either be called from the existing interfaces
with the vdso data pointer supplied via __arch_get_vdso_data() or directly
from ASM code.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Vincenzo Frascino <[email protected]>
Reviewed-by: Vincenzo Frascino <[email protected]>
Link: https://lore.kernel.org/r/abf97996602ef07223fec30c005df78e5ed41b2e.1580399657.git.christophe.leroy@c-s.fr
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/arm_arch_timer.c')
0 files changed, 0 insertions, 0 deletions
