Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187794
b: refs/heads/master
c: f09b7b2
h: refs/heads/master
v: v3
  • Loading branch information
Mark Nelson authored and Benjamin Herrenschmidt committed Mar 9, 2010
1 parent 6ae9610 commit 1275a45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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: 856f70a368022645a08fbecc5d30ec218f13232d
refs/heads/master: f09b7b2a1115d3afe02c66156746287f6c63bba0
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/pseries/plpar_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ static inline long plpar_ipi(unsigned long servernum, unsigned long mfrr)
return plpar_hcall_norets(H_IPI, servernum, mfrr);
}

static inline long plpar_xirr(unsigned long *xirr_ret)
static inline long plpar_xirr(unsigned long *xirr_ret, unsigned char cppr)
{
long rc;
unsigned long retbuf[PLPAR_HCALL_BUFSIZE];

rc = plpar_hcall(H_XIRR, retbuf);
rc = plpar_hcall(H_XIRR, retbuf, cppr);

*xirr_ret = retbuf[0];

Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/powerpc/platforms/pseries/xics.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ static inline void direct_qirr_info(int n_cpu, u8 value)

/* LPAR low level accessors */

static inline unsigned int lpar_xirr_info_get(void)
static inline unsigned int lpar_xirr_info_get(unsigned char cppr)
{
unsigned long lpar_rc;
unsigned long return_value;

lpar_rc = plpar_xirr(&return_value);
lpar_rc = plpar_xirr(&return_value, cppr);
if (lpar_rc != H_SUCCESS)
panic(" bad return code xirr - rc = %lx\n", lpar_rc);
return (unsigned int)return_value;
Expand Down Expand Up @@ -331,7 +331,8 @@ static unsigned int xics_get_irq_direct(void)

static unsigned int xics_get_irq_lpar(void)
{
unsigned int xirr = lpar_xirr_info_get();
struct xics_cppr *os_cppr = &__get_cpu_var(xics_cppr);
unsigned int xirr = lpar_xirr_info_get(os_cppr->stack[os_cppr->index]);
unsigned int vec = xics_xirr_vector(xirr);
unsigned int irq;

Expand Down

0 comments on commit 1275a45

Please sign in to comment.