Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28792
b: refs/heads/master
c: ecec217
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Kerr authored and Paul Mackerras committed Jun 21, 2006
1 parent 78c6f79 commit cc8fd5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 970f1baae78ff99b7536464214d4c78dde4551e2
refs/heads/master: ecec21770d87a5035cfd210cfdb22e1935b0c4a6
21 changes: 2 additions & 19 deletions trunk/arch/powerpc/platforms/cell/spu_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ static int __init create_spu(struct device_node *spe)
static int number;

ret = -ENOMEM;
spu = kmalloc(sizeof (*spu), GFP_KERNEL);
spu = kzalloc(sizeof (*spu), GFP_KERNEL);
if (!spu)
goto out;

Expand All @@ -713,28 +713,11 @@ static int __init create_spu(struct device_node *spe)
spu->nid = of_node_to_nid(spe);
if (spu->nid == -1)
spu->nid = 0;

spu->stop_code = 0;
spu->slb_replace = 0;
spu->mm = NULL;
spu->ctx = NULL;
spu->rq = NULL;
spu->pid = 0;
spu->class_0_pending = 0;
spu->flags = 0UL;
spu->dar = 0UL;
spu->dsisr = 0UL;
spin_lock_init(&spu->register_lock);

spu_mfc_sdr_set(spu, mfspr(SPRN_SDR1));
spu_mfc_sr1_set(spu, 0x33);

spu->ibox_callback = NULL;
spu->wbox_callback = NULL;
spu->stop_callback = NULL;
spu->mfc_callback = NULL;

mutex_lock(&spu_mutex);

spu->number = number++;
ret = spu_request_irqs(spu);
if (ret)
Expand Down

0 comments on commit cc8fd5c

Please sign in to comment.