summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/sched/cpuacct.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched/cpuacct.c b/kernel/sched/cpuacct.c
index 75e46d291f9c..ef57ab658722 100644
--- a/kernel/sched/cpuacct.c
+++ b/kernel/sched/cpuacct.c
@@ -247,9 +247,6 @@ void cpuacct_charge(struct task_struct *tsk, u64 cputime)
struct cpuacct *ca;
int cpu;
- if (unlikely(!cpuacct_subsys.active))
- return;
-
cpu = task_cpu(tsk);
rcu_read_lock();
@@ -278,9 +275,6 @@ void cpuacct_account_field(struct task_struct *p, int index, u64 val)
struct kernel_cpustat *kcpustat;
struct cpuacct *ca;
- if (unlikely(!cpuacct_subsys.active))
- return;
-
rcu_read_lock();
ca = task_ca(p);
while (ca != &root_cpuacct) {