direct-io.hg

changeset 11520:2b8660a8a9bc

[XEN][POWERPC] Whitespace.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author hollisb@localhost
date Mon Sep 18 13:21:39 2006 -0500 (2006-09-18)
parents e99a195f2112
children 33266be3c635
files xen/arch/powerpc/powerpc64/ppc970.c xen/include/asm-powerpc/cache.h xen/include/asm-powerpc/page.h
line diff
     1.1 --- a/xen/arch/powerpc/powerpc64/ppc970.c	Thu Sep 14 11:13:54 2006 -0500
     1.2 +++ b/xen/arch/powerpc/powerpc64/ppc970.c	Mon Sep 18 13:21:39 2006 -0500
     1.3 @@ -35,11 +35,11 @@
     1.4  #undef SERIALIZE
     1.5  
     1.6  struct cpu_caches cpu_caches = {
     1.7 -	.dline_size = 0x80,
     1.8 -	.log_dline_size = 7,
     1.9 +    .dline_size = 0x80,
    1.10 +    .log_dline_size = 7,
    1.11      .dlines_per_page = PAGE_SIZE >> 7,
    1.12 -	.iline_size = 0x80,
    1.13 -	.log_iline_size = 7,
    1.14 +    .iline_size = 0x80,
    1.15 +    .log_iline_size = 7,
    1.16      .ilines_per_page = PAGE_SIZE >> 7,
    1.17  };
    1.18  
     2.1 --- a/xen/include/asm-powerpc/cache.h	Thu Sep 14 11:13:54 2006 -0500
     2.2 +++ b/xen/include/asm-powerpc/cache.h	Mon Sep 18 13:21:39 2006 -0500
     2.3 @@ -60,14 +60,14 @@ static __inline__ void synchronize_cache
     2.4  #define __read_mostly
     2.5  
     2.6  struct cpu_caches {
     2.7 -	u32	dsize;			/* L1 d-cache size */
     2.8 -	u32	dline_size;		/* L1 d-cache line size	*/
     2.9 -	u32	log_dline_size;
    2.10 -	u32	dlines_per_page;
    2.11 -	u32	isize;			/* L1 i-cache size */
    2.12 -	u32	iline_size;		/* L1 i-cache line size	*/
    2.13 -	u32	log_iline_size;
    2.14 -	u32	ilines_per_page;
    2.15 +    u32 dsize;          /* L1 d-cache size */
    2.16 +    u32 dline_size;     /* L1 d-cache line size */
    2.17 +    u32 log_dline_size;
    2.18 +    u32 dlines_per_page;
    2.19 +    u32 isize;          /* L1 i-cache size */
    2.20 +    u32 iline_size;     /* L1 i-cache line size */
    2.21 +    u32 log_iline_size;
    2.22 +    u32 ilines_per_page;
    2.23  };
    2.24  extern struct cpu_caches cpu_caches;
    2.25  #endif
     3.1 --- a/xen/include/asm-powerpc/page.h	Thu Sep 14 11:13:54 2006 -0500
     3.2 +++ b/xen/include/asm-powerpc/page.h	Mon Sep 18 13:21:39 2006 -0500
     3.3 @@ -73,19 +73,19 @@ typedef struct { unsigned long l1_lo; } 
     3.4  
     3.5  static __inline__ void clear_page(void *addr)
     3.6  {
     3.7 -	unsigned long lines, line_size;
     3.8 +    unsigned long lines, line_size;
     3.9  
    3.10 -	line_size = cpu_caches.dline_size;
    3.11 -	lines = cpu_caches.dlines_per_page;
    3.12 +    line_size = cpu_caches.dline_size;
    3.13 +    lines = cpu_caches.dlines_per_page;
    3.14  
    3.15 -	__asm__ __volatile__(
    3.16 -	"mtctr	%1	# clear_page\n\
    3.17 -1:      dcbz	0,%0\n\
    3.18 -	add	%0,%0,%3\n\
    3.19 -	bdnz+	1b"
    3.20 +    __asm__ __volatile__(
    3.21 +    "mtctr  %1      # clear_page\n\
    3.22 +1:  dcbz    0,%0\n\
    3.23 +    add     %0,%0,%3\n\
    3.24 +    bdnz+   1b"
    3.25      : "=r" (addr)
    3.26      : "r" (lines), "0" (addr), "r" (line_size)
    3.27 -	: "ctr", "memory");
    3.28 +    : "ctr", "memory");
    3.29  }
    3.30  
    3.31  extern void copy_page(void *dp, void *sp);