1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/arch/arm/plat-versatile/sched-clock.c
5 * Copyright (C) 1999 - 2003 ARM Limited
6 * Copyright (C) 2000 Deep Blue Solutions Ltd
8 #include <linux/kernel.h>
10 #include <linux/sched_clock.h>
12 #include <plat/sched_clock.h>
14 static void __iomem
*ctr
;
16 static u64 notrace
versatile_read_sched_clock(void)
24 void __init
versatile_sched_clock_init(void __iomem
*reg
, unsigned long rate
)
27 sched_clock_register(versatile_read_sched_clock
, 32, rate
);