Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175791
b: refs/heads/master
c: 293cfa4
h: refs/heads/master
i:
  175789: 9f1e775
  175787: 6a5db9f
  175783: fca2f75
  175775: 52d78d7
v: v3
  • Loading branch information
Thomas Gleixner authored and Benjamin Herrenschmidt committed Nov 24, 2009
1 parent 0f7681a commit a0b48be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 0b048c7a1d7f65e3e3f77834c03237be9d6d94b7
refs/heads/master: 293cfa44c3a861d63c77923667206356c4756ae0
8 changes: 6 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/htab.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

#include "call_hpt.h"

static spinlock_t iSeries_hlocks[64] __cacheline_aligned_in_smp =
{ [0 ... 63] = SPIN_LOCK_UNLOCKED};
static spinlock_t iSeries_hlocks[64] __cacheline_aligned_in_smp;

/*
* Very primitive algorithm for picking up a lock
Expand Down Expand Up @@ -245,6 +244,11 @@ static void iSeries_hpte_invalidate(unsigned long slot, unsigned long va,

void __init hpte_init_iSeries(void)
{
int i;

for (i = 0; i < ARRAY_SIZE(iSeries_hlocks); i++)
spin_lock_init(&iSeries_hlocks[i]);

ppc_md.hpte_invalidate = iSeries_hpte_invalidate;
ppc_md.hpte_updatepp = iSeries_hpte_updatepp;
ppc_md.hpte_updateboltedpp = iSeries_hpte_updateboltedpp;
Expand Down

0 comments on commit a0b48be

Please sign in to comment.