Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67337
b: refs/heads/master
c: 8b0d312
h: refs/heads/master
i:
  67335: 152f005
v: v3
  • Loading branch information
Sebastian Siewior authored and Paul Mackerras committed Sep 19, 2007
1 parent 50ba3d3 commit 89977e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 6232a74f25f45a98d8cf64c5d4208f4795eb693d
refs/heads/master: 8b0d3121a0b2cf91768ecef635e241b6abc3f1da
9 changes: 6 additions & 3 deletions trunk/arch/powerpc/platforms/cell/spufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

static struct kmem_cache *spufs_inode_cache;
char *isolated_loader;
static int isolated_loader_size;

static struct inode *
spufs_alloc_inode(struct super_block *sb)
Expand Down Expand Up @@ -667,7 +668,8 @@ spufs_parse_options(char *options, struct inode *root)

static void spufs_exit_isolated_loader(void)
{
kfree(isolated_loader);
free_pages((unsigned long) isolated_loader,
get_order(isolated_loader_size));
}

static void
Expand All @@ -685,11 +687,12 @@ spufs_init_isolated_loader(void)
if (!loader)
return;

/* kmalloc should align on a 16 byte boundary..* */
isolated_loader = kmalloc(size, GFP_KERNEL);
/* the loader must be align on a 16 byte boundary */
isolated_loader = (char *)__get_free_pages(GFP_KERNEL, get_order(size));
if (!isolated_loader)
return;

isolated_loader_size = size;
memcpy(isolated_loader, loader, size);
printk(KERN_INFO "spufs: SPU isolation mode enabled\n");
}
Expand Down

0 comments on commit 89977e0

Please sign in to comment.