Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42292
b: refs/heads/master
c: e28b003
h: refs/heads/master
v: v3
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Dec 4, 2006
1 parent ef89621 commit 3833def
Show file tree
Hide file tree
Showing 8 changed files with 491 additions and 348 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: e34226d2cd443a67f46fc531e3a6bc6e03843ce2
refs/heads/master: e28b003136b5b2f10c25b49c32df9b7742550c23
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/platforms/cell/cbe_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
#include <asm/prom.h>

#include "cbe_regs.h"
#include "spu_priv1_mmio.h"

static struct cbe_pmd_regs __iomem *get_pmd_regs(struct sys_device *sysdev)
{
struct spu *spu;

spu = container_of(sysdev, struct spu, sysdev);

return cbe_get_pmd_regs(spu->devnode);
return cbe_get_pmd_regs(spu_devnode(spu));
}

/* returns the value for a given spu in a given register */
Expand All @@ -49,7 +50,7 @@ static u8 spu_read_register_value(struct sys_device *sysdev, union spe_reg __iom
/* getting the id from the reg attribute will not work on future device-tree layouts
* in future we should store the id to the spu struct and use it here */
spu = container_of(sysdev, struct spu, sysdev);
id = (unsigned int *)get_property(spu->devnode, "reg", NULL);
id = (unsigned int *)get_property(spu_devnode(spu), "reg", NULL);
value.val = in_be64(&reg->val);

return value.spe[*id];
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/platforms/cell/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ static void __init cell_init_irq(void)
static void __init cell_setup_arch(void)
{
#ifdef CONFIG_SPU_BASE
spu_priv1_ops = &spu_priv1_mmio_ops;
spu_priv1_ops = &spu_priv1_mmio_ops;
spu_management_ops = &spu_management_of_ops;
#endif

cbe_regs_init();
Expand Down
Loading

0 comments on commit 3833def

Please sign in to comment.