blob: f2eb2ee535cabeffea2019cfcfdf113a9025f768 [file] [log] [blame]
Frederic Weisbeckerbfc3f022014-03-05 16:33:42 +01001#ifndef __LINUX_CPUTIME_H
2#define __LINUX_CPUTIME_H
3
4#include <asm/cputime.h>
5
Frederic Weisbeckerd8a9ce32014-03-05 16:22:37 +01006#ifndef cputime_to_nsecs
7# define cputime_to_nsecs(__ct) \
8 (cputime_to_usecs(__ct) * NSEC_PER_USEC)
9#endif
10
Frederic Weisbeckerbfc3f022014-03-05 16:33:42 +010011#ifndef nsecs_to_cputime
12# define nsecs_to_cputime(__nsecs) \
13 usecs_to_cputime((__nsecs) / NSEC_PER_USEC)
14#endif
15
16#endif /* __LINUX_CPUTIME_H */