diff options
author | Guo Ren <[email protected]> | 2021-01-17 23:38:18 +0800 |
---|---|---|
committer | Guo Ren <[email protected]> | 2021-02-27 16:35:09 +0800 |
commit | 0d3b051adbb72ed81956447d0d1e54d5943ee6f5 (patch) | |
tree | 433b4210fd30da045a8a7f8709740a8787d85ac0 /arch/csky/include/asm/vdso/processor.h | |
parent | 8dcbc611f0fcbcc196dc96e0f833181df0d80242 (diff) |
csky: Add VDSO with GENERIC_GETTIMEOFDAY, GENERIC_TIME_VSYSCALL, HAVE_GENERIC_VDSO
It could help to reduce the latency of the time-related functions
in user space.
We have referenced arm's and riscv's implementation for the patch.
Signed-off-by: Guo Ren <[email protected]>
Cc: Vincent Chen <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Diffstat (limited to 'arch/csky/include/asm/vdso/processor.h')
-rw-r--r-- | arch/csky/include/asm/vdso/processor.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/csky/include/asm/vdso/processor.h b/arch/csky/include/asm/vdso/processor.h new file mode 100644 index 000000000000..39a6b561d0cc --- /dev/null +++ b/arch/csky/include/asm/vdso/processor.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __ASM_VDSO_CSKY_PROCESSOR_H +#define __ASM_VDSO_CSKY_PROCESSOR_H + +#ifndef __ASSEMBLY__ + +#define cpu_relax() barrier() + +#endif /* __ASSEMBLY__ */ + +#endif /* __ASM_VDSO_CSKY_PROCESSOR_H */ |