Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
arch/powerpc/platforms/cell/spufs/file.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index d19220f..52f020a 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -1606,12 +1606,17 @@ static void spufs_npc_set(void *data, u64 val)
spu_release(ctx);
}
+static u64 __spufs_npc_get(struct spu_context *ctx)
+{
+ return ctx->ops->npc_read(ctx);
+}
+
static u64 spufs_npc_get(void *data)
{
struct spu_context *ctx = data;
u64 ret;
spu_acquire(ctx);
- ret = ctx->ops->npc_read(ctx);
+ ret = __spufs_npc_get(ctx);
spu_release(ctx);
return ret;
}
@@ -2242,6 +2247,7 @@ struct spufs_coredump_reader spufs_coredump_read[] = {
{ "proxydma_info", __spufs_proxydma_info_read,
NULL, sizeof(struct spu_proxydma_info)},
{ "object-id", NULL, __spufs_object_id_get, 19 },
+ { "npc", NULL, __spufs_npc_get, 19 },
};
int spufs_coredump_num_notes = ARRAY_SIZE(spufs_coredump_read);
--
1.5.1.3.g7a33b
-
| David Miller | Slow DOWN, please!!! |
| H. Peter Anvin | Re: [Ksummit-2008-discuss] Fixing the Kernel Janitors project |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| Junio C Hamano | Re: [RFC] origin link for cherry-pick and revert |
| Len Brown | fatal: unable to create '.git/index': File exists |
| Petr Baudis | [RFC][PATCH 0/7] Submodule support in git mv, git rm |
| Karel Kulhavy | OpenBSD kernel janitors |
| rezidue | Speed Problems |
| Richard Stallman | Real men don't attack straw men |
| Alex Thurlow | Router performance on OpenBSD and OpenBGPD |
| David Miller | [GIT]: Networking |
| David Miller | Re: kernel oops when system under network stress |
| Laszlo Attila Toth | [PATCH] Introducing socket mark socket option |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
