aboutsummaryrefslogtreecommitdiff
path: root/arch/csky/kernel/perf_event.c
diff options
context:
space:
mode:
authorGuo Ren <[email protected]>2021-01-17 23:38:18 +0800
committerGuo Ren <[email protected]>2021-02-27 16:35:09 +0800
commit0d3b051adbb72ed81956447d0d1e54d5943ee6f5 (patch)
tree433b4210fd30da045a8a7f8709740a8787d85ac0 /arch/csky/kernel/perf_event.c
parent8dcbc611f0fcbcc196dc96e0f833181df0d80242 (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/kernel/perf_event.c')
-rw-r--r--arch/csky/kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/kernel/perf_event.c b/arch/csky/kernel/perf_event.c
index 55d5a5379483..e5f18420ce64 100644
--- a/arch/csky/kernel/perf_event.c
+++ b/arch/csky/kernel/perf_event.c
@@ -87,7 +87,7 @@ static int csky_pmu_irq;
})
/* cycle counter */
-static uint64_t csky_pmu_read_cc(void)
+uint64_t csky_pmu_read_cc(void)
{
uint32_t lo, hi, tmp;
uint64_t result;