aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/spu.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2005-12-05 22:52:26 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-08 22:52:58 -0500
commit2a911f0bb73e67826062b7d073dd7367ca449724 (patch)
treec1d8d4f340cf7571722b2d9019f158acd345cff4 /include/asm-powerpc/spu.h
parent5110459f181ef1f11200bb3dec61953f08cc49e7 (diff)
[PATCH] spufs: Improved SPU preemptability [part 2].
This patch reduces lock complexity of SPU scheduler, particularly for involuntary preemptive switches. As a result the new code does a better job of mapping the highest priority tasks to SPUs. Lock complexity is reduced by using the system default workqueue to perform involuntary saves. In this way we avoid nasty lock ordering problems that the previous code had. A "minimum timeslice" for SPU contexts is also introduced. The intent here is to avoid thrashing. While the new scheduler does a better job at prioritization it still does nothing for fairness. From: Mark Nutter <mnutter@us.ibm.com> Signed-off-by: Arnd Bergmann <arndb@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/spu.h')
-rw-r--r--include/asm-powerpc/spu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h
index dd91ed8563d2..698c4cb08c60 100644
--- a/include/asm-powerpc/spu.h
+++ b/include/asm-powerpc/spu.h
@@ -129,6 +129,7 @@ struct spu {
129 struct mm_struct *mm; 129 struct mm_struct *mm;
130 struct spu_context *ctx; 130 struct spu_context *ctx;
131 struct spu_runqueue *rq; 131 struct spu_runqueue *rq;
132 unsigned long long timestamp;
132 pid_t pid; 133 pid_t pid;
133 int prio; 134 int prio;
134 int class_0_pending; 135 int class_0_pending;