mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ANDROID: GKI: Export sched_clock_register
clocksource driver may use sched_clock_register to resigter itself as a sched_clock source. Export it to support building such driver as module, like timer-imx-tpm.c Bug: 194108974 Signed-off-by: Jindong Yue <jindong.yue@nxp.com> Change-Id: Id23f3da624a1e70fc1a44daf6f827c03dc1d053d
This commit is contained in:
parent
9e5446d7de
commit
84881c68b1
|
|
@ -150,8 +150,7 @@ static enum hrtimer_restart sched_clock_poll(struct hrtimer *hrt)
|
||||||
return HRTIMER_RESTART;
|
return HRTIMER_RESTART;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init
|
void sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
|
||||||
sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
|
|
||||||
{
|
{
|
||||||
u64 res, wrap, new_mask, new_epoch, cyc, ns;
|
u64 res, wrap, new_mask, new_epoch, cyc, ns;
|
||||||
u32 new_mult, new_shift;
|
u32 new_mult, new_shift;
|
||||||
|
|
@ -225,6 +224,7 @@ sched_clock_register(u64 (*read)(void), int bits, unsigned long rate)
|
||||||
|
|
||||||
pr_debug("Registered %pS as sched_clock source\n", read);
|
pr_debug("Registered %pS as sched_clock source\n", read);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(sched_clock_register);
|
||||||
|
|
||||||
void __init generic_sched_clock_init(void)
|
void __init generic_sched_clock_init(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user