projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c92a1ac
)
[POWERPC] spufs: fix use time accounting on SPE-overcommit
author
Andre Detsch
<
[email protected]
>
Mon, 25 Feb 2008 18:07:42 +0000
(15:07 -0300)
committer
Jeremy Kerr
<
[email protected]
>
Fri, 29 Feb 2008 04:48:55 +0000
(15:48 +1100)
The spu_runcntl_RW register is restored within spu_restore function.
So, at the end of spu_bind_context, the SPU context is not just loaded,
but running.
This change corrects the state switch to account the time as USER.
Signed-off-by: Andre Detsch <
[email protected]
>
Signed-off-by: Jeremy Kerr <
[email protected]
>
arch/powerpc/platforms/cell/spufs/sched.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/sched.c
b/arch/powerpc/platforms/cell/spufs/sched.c
index 3a5972117de7cdcd04504ae46d97e8b79376e0bc..5d5f680cd0b8ced5789556e444a0b8b955cc23c8 100644
(file)
--- a/
arch/powerpc/platforms/cell/spufs/sched.c
+++ b/
arch/powerpc/platforms/cell/spufs/sched.c
@@
-246,7
+246,7
@@
static void spu_bind_context(struct spu *spu, struct spu_context *ctx)
spu_switch_notify(spu, ctx);
ctx->state = SPU_STATE_RUNNABLE;
- spuctx_switch_state(ctx, SPU_UTIL_
IDLE_LOADED
);
+ spuctx_switch_state(ctx, SPU_UTIL_
USER
);
}
/*