ANDROID: time/sched_clock: Export sched_clock_read_begin/retry()
Export sched_clock_read_begin/retry() to provide sched clock data, allowing the calculation of the offset between the arch timer counter and the kernel sched clock. Bug: 380370040 Change-Id: I8e753b6ac2dc1cc856e09285f95dd4e5a16078b5 Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
This commit is contained in:
committed by
Treehugger Robot
parent
18d8aca0a3
commit
458455e3e2
@@ -75,11 +75,13 @@ notrace struct clock_read_data *sched_clock_read_begin(unsigned int *seq)
|
||||
*seq = raw_read_seqcount_latch(&cd.seq);
|
||||
return cd.read_data + (*seq & 1);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sched_clock_read_begin);
|
||||
|
||||
notrace int sched_clock_read_retry(unsigned int seq)
|
||||
{
|
||||
return raw_read_seqcount_latch_retry(&cd.seq, seq);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sched_clock_read_retry);
|
||||
|
||||
unsigned long long noinstr sched_clock_noinstr(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user