Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149629
b: refs/heads/master
c: fb94fc2
h: refs/heads/master
i:
  149627: f1efaca
v: v3
  • Loading branch information
Geoff Levand authored and Benjamin Herrenschmidt committed May 21, 2009
1 parent a964dc5 commit 847cd8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 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: 14f966e79445015cd89d0fa0ceb6b33702e951b6
refs/heads/master: fb94fc2b89ea0422950cb1220f275622246bd66d
16 changes: 1 addition & 15 deletions trunk/arch/powerpc/platforms/ps3/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,13 @@
#define DBG pr_debug
#endif

static irqreturn_t ipi_function_handler(int irq, void *msg)
{
smp_message_recv((int)(long)msg);
return IRQ_HANDLED;
}

/**
* ps3_ipi_virqs - a per cpu array of virqs for ipi use
*/

#define MSG_COUNT 4
static DEFINE_PER_CPU(unsigned int, ps3_ipi_virqs[MSG_COUNT]);

static const char *names[MSG_COUNT] = {
"ipi call",
"ipi reschedule",
"ipi migrate",
"ipi debug brk"
};

static void do_message_pass(int target, int msg)
{
int result;
Expand Down Expand Up @@ -119,8 +106,7 @@ static void __init ps3_smp_setup_cpu(int cpu)
DBG("%s:%d: (%d, %d) => virq %u\n",
__func__, __LINE__, cpu, i, virqs[i]);

result = request_irq(virqs[i], ipi_function_handler,
IRQF_DISABLED, names[i], (void*)(long)i);
result = smp_request_message_ipi(virqs[i], i);

if (result)
virqs[i] = NO_IRQ;
Expand Down

0 comments on commit 847cd8a

Please sign in to comment.