- sched-add-discrete-weighted-cpu-load-function.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     sched: add discrete weighted cpu load function

has been removed from the -mm tree.  Its filename is

     sched-add-discrete-weighted-cpu-load-function.patch

This patch was dropped because it was folded into sched-implement-smpnice.patch

------------------------------------------------------
Subject: sched: add discrete weighted cpu load function
From: Con Kolivas <kernel@xxxxxxxxxxx>


When the type of weighting is known to be zero we can use a simpler version
of source_load with a weighted_cpuload() function.  Export that function to
allow relative weighted cpu load to be used by other subsystems if desired.

Signed-off-by: Con Kolivas <kernel@xxxxxxxxxxx>
Acked-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/sched.h |    1 +
 kernel/sched.c        |   10 ++++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff -puN include/linux/sched.h~sched-add-discrete-weighted-cpu-load-function include/linux/sched.h
--- devel/include/linux/sched.h~sched-add-discrete-weighted-cpu-load-function	2006-06-09 15:18:10.000000000 -0700
+++ devel-akpm/include/linux/sched.h	2006-06-09 15:18:10.000000000 -0700
@@ -123,6 +123,7 @@ extern unsigned long nr_running(void);
 extern unsigned long nr_uninterruptible(void);
 extern unsigned long nr_active(void);
 extern unsigned long nr_iowait(void);
+extern unsigned long weighted_cpuload(const int cpu);
 
 
 /*
diff -puN kernel/sched.c~sched-add-discrete-weighted-cpu-load-function kernel/sched.c
--- devel/kernel/sched.c~sched-add-discrete-weighted-cpu-load-function	2006-06-09 15:18:10.000000000 -0700
+++ devel-akpm/kernel/sched.c	2006-06-09 15:18:10.000000000 -0700
@@ -954,6 +954,12 @@ inline int task_curr(const task_t *p)
 	return cpu_curr(task_cpu(p)) == p;
 }
 
+/* Used instead of source_load when we know the type == 0 */
+unsigned long weighted_cpuload(const int cpu)
+{
+	return cpu_rq(cpu)->raw_weighted_load;
+}
+
 #ifdef CONFIG_SMP
 typedef struct {
 	struct list_head list;
@@ -1154,7 +1160,7 @@ find_idlest_cpu(struct sched_group *grou
 	cpus_and(tmp, group->cpumask, p->cpus_allowed);
 
 	for_each_cpu_mask(i, tmp) {
-		load = source_load(i, 0);
+		load = weighted_cpuload(i);
 
 		if (load < min_load || (load == min_load && i == this_cpu)) {
 			min_load = load;
@@ -2245,7 +2251,7 @@ static runqueue_t *find_busiest_queue(st
 	int i;
 
 	for_each_cpu_mask(i, group->cpumask) {
-		load = source_load(i, 0);
+		load = weighted_cpuload(i);
 
 		if (load > max_load) {
 			max_load = load;
_

Patches currently in -mm which might be from kernel@xxxxxxxxxxx are

origin.patch
sched-fix-smt-nice-lock-contention-and-optimization.patch
sched-fix-interactive-ceiling-code.patch
sched-implement-smpnice.patch
sched-add-discrete-weighted-cpu-load-function.patch
sched-prevent-high-load-weight-tasks-suppressing-balancing.patch
sched-improve-stability-of-smpnice-load-balancing.patch
sched-mc-smt-power-savings-sched-policy.patch
sched-uninline-task_rq_lock.patch
sched-add-above-background-load-function.patch
mm-implement-swap-prefetching.patch
swap_prefetch-vs-zoned-counters.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux