Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73703
b: refs/heads/master
c: cfb5285
h: refs/heads/master
i:
  73701: 3a12a40
  73699: 09fbb68
  73695: 816f3df
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Nov 15, 2007
1 parent ceebf63 commit 52775f3
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 226 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45c682a68a87251d9a01383ce076ab21ee09812e
refs/heads/master: cfb5285660aad4931b2ebbfa902ea48a37dfffa1
6 changes: 0 additions & 6 deletions trunk/include/linux/cgroup_subsys.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ SUBSYS(cpuset)

/* */

#ifdef CONFIG_CGROUP_CPUACCT
SUBSYS(cpuacct)
#endif

/* */

#ifdef CONFIG_CGROUP_DEBUG
SUBSYS(debug)
#endif
Expand Down
14 changes: 0 additions & 14 deletions trunk/include/linux/cpu_acct.h

This file was deleted.

7 changes: 0 additions & 7 deletions trunk/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,6 @@ config CGROUP_NS
for instance virtual servers and checkpoint/restart
jobs.

config CGROUP_CPUACCT
bool "Simple CPU accounting cgroup subsystem"
depends on CGROUPS
help
Provides a simple Resource Controller for monitoring the
total CPU consumed by the tasks in a cgroup

config CPUSETS
bool "Cpuset support"
depends on SMP && CGROUPS
Expand Down
1 change: 0 additions & 1 deletion trunk/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ obj-$(CONFIG_COMPAT) += compat.o
obj-$(CONFIG_CGROUPS) += cgroup.o
obj-$(CONFIG_CGROUP_DEBUG) += cgroup_debug.o
obj-$(CONFIG_CPUSETS) += cpuset.o
obj-$(CONFIG_CGROUP_CPUACCT) += cpu_acct.o
obj-$(CONFIG_CGROUP_NS) += ns_cgroup.o
obj-$(CONFIG_IKCONFIG) += configs.o
obj-$(CONFIG_STOP_MACHINE) += stop_machine.o
Expand Down
186 changes: 0 additions & 186 deletions trunk/kernel/cpu_acct.c

This file was deleted.

14 changes: 3 additions & 11 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#include <linux/cpu.h>
#include <linux/cpuset.h>
#include <linux/percpu.h>
#include <linux/cpu_acct.h>
#include <linux/kthread.h>
#include <linux/seq_file.h>
#include <linux/sysctl.h>
Expand Down Expand Up @@ -3338,13 +3337,9 @@ void account_user_time(struct task_struct *p, cputime_t cputime)
{
struct cpu_usage_stat *cpustat = &kstat_this_cpu.cpustat;
cputime64_t tmp;
struct rq *rq = this_rq();

p->utime = cputime_add(p->utime, cputime);

if (p != rq->idle)
cpuacct_charge(p, cputime);

/* Add user time to cpustat. */
tmp = cputime_to_cputime64(cputime);
if (TASK_NICE(p) > 0)
Expand Down Expand Up @@ -3408,10 +3403,9 @@ void account_system_time(struct task_struct *p, int hardirq_offset,
cpustat->irq = cputime64_add(cpustat->irq, tmp);
else if (softirq_count())
cpustat->softirq = cputime64_add(cpustat->softirq, tmp);
else if (p != rq->idle) {
else if (p != rq->idle)
cpustat->system = cputime64_add(cpustat->system, tmp);
cpuacct_charge(p, cputime);
} else if (atomic_read(&rq->nr_iowait) > 0)
else if (atomic_read(&rq->nr_iowait) > 0)
cpustat->iowait = cputime64_add(cpustat->iowait, tmp);
else
cpustat->idle = cputime64_add(cpustat->idle, tmp);
Expand Down Expand Up @@ -3447,10 +3441,8 @@ void account_steal_time(struct task_struct *p, cputime_t steal)
cpustat->iowait = cputime64_add(cpustat->iowait, tmp);
else
cpustat->idle = cputime64_add(cpustat->idle, tmp);
} else {
} else
cpustat->steal = cputime64_add(cpustat->steal, tmp);
cpuacct_charge(p, -tmp);
}
}

/*
Expand Down

0 comments on commit 52775f3

Please sign in to comment.