summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>2006-06-28 13:49:52 -0700
committerDave Jones <davej@redhat.com>2006-06-30 01:29:47 -0400
commitccb2fe209dac9ff67f6351e783e610073afaaeaf (patch)
treeba6793c2045604d6db11b781d87a404cb30a54b8 /include
parent501b7c77de3e90519e95fd99e923bf9a29cd120d (diff)
downloadop-kernel-dev-ccb2fe209dac9ff67f6351e783e610073afaaeaf.zip
op-kernel-dev-ccb2fe209dac9ff67f6351e783e610073afaaeaf.tar.gz
[CPUFREQ] Remove slowdown from ondemand sampling path.
Remove slowdown from ondemand sampling path. This reduces the code path length in dbs_check_cpu() by half. slowdown was not used by ondemand by default. If there are any user level tools that were using this tunable, they may report error now. Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com> Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/cputime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/cputime.h b/include/asm-generic/cputime.h
index 6f17856..09204e4 100644
--- a/include/asm-generic/cputime.h
+++ b/include/asm-generic/cputime.h
@@ -24,7 +24,9 @@ typedef u64 cputime64_t;
#define cputime64_zero (0ULL)
#define cputime64_add(__a, __b) ((__a) + (__b))
+#define cputime64_sub(__a, __b) ((__a) - (__b))
#define cputime64_to_jiffies64(__ct) (__ct)
+#define jiffies64_to_cputime64(__jif) (__jif)
#define cputime_to_cputime64(__ct) ((u64) __ct)
OpenPOWER on IntegriCloud