diff options
author | Venkatesh Pallipadi <venki@google.com> | 2010-12-21 17:09:01 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-26 12:33:20 +0100 |
commit | a1dabb6bfffccb897eff3e1d102dacf2a4bedf3b (patch) | |
tree | 412e36223e65fca0bd8ea7db6a57553a25799245 /include/asm-generic/cputime.h | |
parent | 4dd53d891ca46dcc1fde0376a33540d3fd83cb9a (diff) | |
download | kernel_samsung_tuna-a1dabb6bfffccb897eff3e1d102dacf2a4bedf3b.zip kernel_samsung_tuna-a1dabb6bfffccb897eff3e1d102dacf2a4bedf3b.tar.gz kernel_samsung_tuna-a1dabb6bfffccb897eff3e1d102dacf2a4bedf3b.tar.bz2 |
time: Add nsecs_to_cputime64 interface for asm-generic
Add nsecs_to_cputime64 interface. This is used in following patches that
updates cpu irq stat based on ns granularity info in IRQ_TIME_ACCOUNTING.
Tested-by: Shaun Ruffell <sruffell@digium.com>
Signed-off-by: Venkatesh Pallipadi <venki@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1292980144-28796-3-git-send-email-venki@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-generic/cputime.h')
-rw-r--r-- | include/asm-generic/cputime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-generic/cputime.h b/include/asm-generic/cputime.h index 2bcc5c7..61e03dd 100644 --- a/include/asm-generic/cputime.h +++ b/include/asm-generic/cputime.h @@ -30,6 +30,9 @@ typedef u64 cputime64_t; #define cputime64_to_jiffies64(__ct) (__ct) #define jiffies64_to_cputime64(__jif) (__jif) #define cputime_to_cputime64(__ct) ((u64) __ct) +#define cputime64_gt(__a, __b) ((__a) > (__b)) + +#define nsecs_to_cputime64(__ct) nsecs_to_jiffies64(__ct) /* |