Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39101
b: refs/heads/master
c: 1224f37
h: refs/heads/master
i:
  39099: 3529c3e
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Oct 7, 2006
1 parent e281fda commit 0a58d1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 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: 27db2d0cb9b56210dc1e29bc89a7413f3ae67b91
refs/heads/master: 1224f373c974eacc46fe5e1073422c794d0b0d34
7 changes: 2 additions & 5 deletions trunk/arch/powerpc/platforms/iseries/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@
#include "irq.h"
#include "pci.h"
#include "call_pci.h"

#if defined(CONFIG_SMP)
extern void iSeries_smp_message_recv(struct pt_regs *);
#endif
#include "smp.h"

#ifdef CONFIG_PCI

Expand Down Expand Up @@ -315,7 +312,7 @@ unsigned int iSeries_get_irq(struct pt_regs *regs)
#ifdef CONFIG_SMP
if (get_lppaca()->int_dword.fields.ipi_cnt) {
get_lppaca()->int_dword.fields.ipi_cnt = 0;
iSeries_smp_message_recv(regs);
iSeries_smp_message_recv();
}
#endif /* CONFIG_SMP */
if (hvlpevent_is_pending())
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
#include <asm/cputable.h>
#include <asm/system.h>

#include "smp.h"

static unsigned long iSeries_smp_message[NR_CPUS];

void iSeries_smp_message_recv(struct pt_regs *regs)
void iSeries_smp_message_recv(void)
{
int cpu = smp_processor_id();
int msg;
Expand All @@ -55,7 +57,7 @@ void iSeries_smp_message_recv(struct pt_regs *regs)

for (msg = 0; msg < 4; msg++)
if (test_and_clear_bit(msg, &iSeries_smp_message[cpu]))
smp_message_recv(msg, regs);
smp_message_recv(msg);
}

static inline void smp_iSeries_do_message(int cpu, int msg)
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/powerpc/platforms/iseries/smp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _PLATFORMS_ISERIES_SMP_H
#define _PLATFORMS_ISERIES_SMP_H

extern void iSeries_smp_message_recv(void);

#endif /* _PLATFORMS_ISERIES_SMP_H */

0 comments on commit 0a58d1b

Please sign in to comment.