mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
ANDROID: GKI: time: Export for nsec_to_clock_t
- Add EXPORT_SYMBOL_GPL for nsec_to_clock_t() so that drivers
be loadable as a module.
- This API is required by loadable driver module from samsung to
fetch process uptime based on CPU clock ticks to get the exact time
during which app is scheduled in user mode.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Bug: 158067689
Change-Id: I45be5fd7873dc7c21aa583313499f48f8b10bb1b
This commit is contained in:
parent
bee18dd57e
commit
0575bec804
|
|
@ -686,6 +686,7 @@ u64 nsec_to_clock_t(u64 x)
|
|||
return div_u64(x * 9, (9ull * NSEC_PER_SEC + (USER_HZ / 2)) / USER_HZ);
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(nsec_to_clock_t);
|
||||
|
||||
u64 jiffies64_to_nsecs(u64 j)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user