linux_dsm_epyc7002/arch/powerpc/platforms/cell/spufs
Christoph Hellwig 9d78592ed7 [POWERPC] spusched: Fix initial timeslice calculation
Currently we calculate the first timeslice for every context
incorrectly - alloc_spu_context calls spu_set_timeslice before we set
ctx->prio so we always calculate the longest possible timeslice for the
lowest possible priority.

This patch makes sure to update the schedule-related fields before
calculating the timeslice and also makes sure we update the timeslice for
a non-running context when entering spu_run so a priority change affects
the context as soon as possible.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-07-26 16:17:56 +10:00
..
backing_ops.c [POWERPC] spufs: Save dma_tagstatus_R in CSA 2007-07-03 15:24:47 +10:00
context.c [POWERPC] spusched: Fix initial timeslice calculation 2007-07-26 16:17:56 +10:00
coredump.c [CELL] spufs: make sure context are scheduled again after spu_acquire_saved 2007-07-20 21:41:52 +02:00
fault.c [CELL] spufs: add spu stats in sysfs and ctx stat file in spufs 2007-07-20 21:41:50 +02:00
file.c Fix ppc64 mismerge 2007-07-22 10:41:27 -07:00
gang.c [CELL] cell: add placement computation for scheduling of affinity contexts 2007-07-20 21:42:17 +02:00
hw_ops.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
inode.c [CELL] spufs: extension of spu_create to support affinity definition 2007-07-20 21:42:15 +02:00
lscsa_alloc.c [POWERPC] Spufs support for 64K LS mappings on 4K kernels 2007-05-09 16:35:00 +10:00
Makefile [POWERPC] Spufs support for 64K LS mappings on 4K kernels 2007-05-09 16:35:00 +10:00
run.c [POWERPC] spusched: Fix initial timeslice calculation 2007-07-26 16:17:56 +10:00
sched.c [POWERPC] spufs: Fix incorrect initialization of cbe_spu_info.spus 2007-07-26 16:17:55 +10:00
spu_restore_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_restore_dump.h_shipped [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_restore.c [CELL] spufs: change decrementer restore timing 2007-07-20 21:42:03 +02:00
spu_save_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_save.c [POWERPC] spufs: fix building spufs/spu_save_dump.h 2007-07-03 15:24:44 +10:00
spu_utils.h [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spufs.h spusched: fix mismerge in spufs.h 2007-07-24 12:24:58 -07:00
switch.c [CELL] spufs: dont halt decrementer at restore step 47 2007-07-20 21:41:58 +02:00
syscalls.c [CELL] spufs: extension of spu_create to support affinity definition 2007-07-20 21:42:15 +02:00