Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138521
b: refs/heads/master
c: 8f748aa
h: refs/heads/master
i:
  138519: 5b7edd7
v: v3
  • Loading branch information
Arnd Bergmann authored and Benjamin Herrenschmidt committed Mar 11, 2009
1 parent afb5696 commit 15171bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e1e3723be3828d6faac03ff6889e78cc0e64286
refs/heads/master: 8f748aae4b5eda6a6ec3ab3554e7e19c7702ccc2
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/platforms/cell/spufs/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ atomic_t nr_spu_contexts = ATOMIC_INIT(0);
struct spu_context *alloc_spu_context(struct spu_gang *gang)
{
struct spu_context *ctx;
struct timespec ts;

ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
if (!ctx)
goto out;
Expand Down Expand Up @@ -64,6 +66,8 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang)
__spu_update_sched_info(ctx);
spu_set_timeslice(ctx);
ctx->stats.util_state = SPU_UTIL_IDLE_LOADED;
ktime_get_ts(&ts);
ctx->stats.tstamp = timespec_to_ns(&ts);

atomic_inc(&nr_spu_contexts);
goto out;
Expand Down

0 comments on commit 15171bd

Please sign in to comment.