Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60671
b: refs/heads/master
c: 74a0ba6
h: refs/heads/master
i:
  60669: fe79d83
  60667: 3061c16
  60663: d7b0bf5
  60655: 4cfbb17
  60639: 60eb44c
  60607: 7cde813
  60543: 2669884
  60415: c418ddf
v: v3
  • Loading branch information
Kumar Gala committed Jul 10, 2007
1 parent 2354da3 commit e9fa1c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 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: cef1a3a5b8697ad76a6d18753e418cfe6a897030
refs/heads/master: 74a0ba61b1ca96d6bb98889a7d95cd057165da49
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/kernel/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void _insb(const volatile u8 __iomem *port, void *buf, long count)
asm volatile("sync");
do {
tmp = *port;
asm volatile("eieio");
eieio();
*tbuf++ = tmp;
} while (--count != 0);
asm volatile("twi 0,%0,0; isync" : : "r" (tmp));
Expand Down Expand Up @@ -66,7 +66,7 @@ void _insw_ns(const volatile u16 __iomem *port, void *buf, long count)
asm volatile("sync");
do {
tmp = *port;
asm volatile("eieio");
eieio();
*tbuf++ = tmp;
} while (--count != 0);
asm volatile("twi 0,%0,0; isync" : : "r" (tmp));
Expand Down Expand Up @@ -97,7 +97,7 @@ void _insl_ns(const volatile u32 __iomem *port, void *buf, long count)
asm volatile("sync");
do {
tmp = *port;
asm volatile("eieio");
eieio();
*tbuf++ = tmp;
} while (--count != 0);
asm volatile("twi 0,%0,0; isync" : : "r" (tmp));
Expand Down Expand Up @@ -155,21 +155,21 @@ void _memcpy_fromio(void *dest, const volatile void __iomem *src,
__asm__ __volatile__ ("sync" : : : "memory");
while(n && (!IO_CHECK_ALIGN(vsrc, 4) || !IO_CHECK_ALIGN(dest, 4))) {
*((u8 *)dest) = *((volatile u8 *)vsrc);
__asm__ __volatile__ ("eieio" : : : "memory");
eieio();
vsrc++;
dest++;
n--;
}
while(n > 4) {
*((u32 *)dest) = *((volatile u32 *)vsrc);
__asm__ __volatile__ ("eieio" : : : "memory");
eieio();
vsrc += 4;
dest += 4;
n -= 4;
}
while(n) {
*((u8 *)dest) = *((volatile u8 *)vsrc);
__asm__ __volatile__ ("eieio" : : : "memory");
eieio();
vsrc++;
dest++;
n--;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/mm/hash_native_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static long native_hpte_insert(unsigned long hpte_group, unsigned long va,

hptep->r = hpte_r;
/* Guarantee the second dword is visible before the valid bit */
__asm__ __volatile__ ("eieio" : : : "memory");
eieio();
/*
* Now set the first dword including the valid bit
* NOTE: this also unlocks the hpte
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/mm/stab.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static int make_ste(unsigned long stab, unsigned long esid, unsigned long vsid)
for (entry = 0; entry < 8; entry++, ste++) {
if (!(ste->esid_data & STE_ESID_V)) {
ste->vsid_data = vsid_data;
asm volatile("eieio":::"memory");
eieio();
ste->esid_data = esid_data;
return (global_entry | entry);
}
Expand Down Expand Up @@ -101,7 +101,7 @@ static int make_ste(unsigned long stab, unsigned long esid, unsigned long vsid)
asm volatile("sync" : : : "memory"); /* Order update */

castout_ste->vsid_data = vsid_data;
asm volatile("eieio" : : : "memory"); /* Order update */
eieio(); /* Order update */
castout_ste->esid_data = esid_data;

asm volatile("slbie %0" : : "r" (old_esid << SID_SHIFT));
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#ifdef CONFIG_SMP
#define smp_mb() mb()
#define smp_rmb() rmb()
#define smp_wmb() __asm__ __volatile__ ("eieio" : : : "memory")
#define smp_wmb() eieio()
#define smp_read_barrier_depends() read_barrier_depends()
#else
#define smp_mb() barrier()
Expand Down

0 comments on commit e9fa1c9

Please sign in to comment.