Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16879
b: refs/heads/master
c: 1fd73c6
h: refs/heads/master
i:
  16877: a68df01
  16875: c5a1342
  16871: 759b605
  16863: 9ab9b60
v: v3
  • Loading branch information
Ravikiran G Thirumalai authored and Linus Torvalds committed Jan 9, 2006
1 parent 2add343 commit ee325b6
Show file tree
Hide file tree
Showing 24 changed files with 5 additions and 37 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: 22fc6eccbf4ce4eb6265e6ada7b50a7b9cc57d05
refs/heads/master: 1fd73c6b6737b7e6eacac1b00dac16e7540c3cb1
1 change: 0 additions & 1 deletion trunk/include/asm-alpha/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@

#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#define L1_CACHE_SHIFT_MAX L1_CACHE_SHIFT

#endif
5 changes: 0 additions & 5 deletions trunk/include/asm-arm/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,4 @@
#define L1_CACHE_SHIFT 5
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

/*
* largest L1 which this arch supports
*/
#define L1_CACHE_SHIFT_MAX 5

#endif
1 change: 0 additions & 1 deletion trunk/include/asm-cris/arch-v10/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
/* Etrax 100LX have 32-byte cache-lines. */
#define L1_CACHE_BYTES 32
#define L1_CACHE_SHIFT 5
#define L1_CACHE_SHIFT_MAX 5

#endif /* _ASM_ARCH_CACHE_H */
1 change: 0 additions & 1 deletion trunk/include/asm-cris/arch-v32/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
/* A cache-line is 32 bytes. */
#define L1_CACHE_BYTES 32
#define L1_CACHE_SHIFT 5
#define L1_CACHE_SHIFT_MAX 5

#endif /* _ASM_CRIS_ARCH_CACHE_H */
2 changes: 1 addition & 1 deletion trunk/include/asm-cris/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ dma_set_mask(struct device *dev, u64 mask)
static inline int
dma_get_cache_alignment(void)
{
return (1 << L1_CACHE_SHIFT_MAX);
return (1 << INTERNODE_CACHE_SHIFT);
}

#define dma_is_consistent(d) (1)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-generic/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ dma_get_cache_alignment(void)
{
/* no easy way to get cache size on all processors, so return
* the maximum possible, to be safe */
return (1 << L1_CACHE_SHIFT_MAX);
return (1 << INTERNODE_CACHE_SHIFT);
}

static inline void
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-i386/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */

#endif
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ dma_get_cache_alignment(void)
{
/* no easy way to get cache size on all x86, so return the
* maximum possible, to be safe */
return (1 << L1_CACHE_SHIFT_MAX);
return (1 << INTERNODE_CACHE_SHIFT);
}

#define dma_is_consistent(d) (1)
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-ia64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#define L1_CACHE_SHIFT CONFIG_IA64_L1_CACHE_SHIFT
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */

#ifdef CONFIG_SMP
# define SMP_CACHE_SHIFT L1_CACHE_SHIFT
# define SMP_CACHE_BYTES L1_CACHE_BYTES
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-m32r/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
#define L1_CACHE_SHIFT 4
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define L1_CACHE_SHIFT_MAX 4

#endif /* _ASM_M32R_CACHE_H */
2 changes: 0 additions & 2 deletions trunk/include/asm-m68k/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@
#define L1_CACHE_SHIFT 4
#define L1_CACHE_BYTES (1<< L1_CACHE_SHIFT)

#define L1_CACHE_SHIFT_MAX 4 /* largest L1 which this arch supports */

#endif
1 change: 0 additions & 1 deletion trunk/include/asm-mips/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define L1_CACHE_SHIFT CONFIG_MIPS_L1_CACHE_SHIFT
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define L1_CACHE_SHIFT_MAX 6
#define SMP_CACHE_SHIFT L1_CACHE_SHIFT
#define SMP_CACHE_BYTES L1_CACHE_BYTES

Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-parisc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))

#define SMP_CACHE_BYTES L1_CACHE_BYTES
#define L1_CACHE_SHIFT_MAX 5 /* largest L1 which this arch supports */

extern void flush_data_cache_local(void); /* flushes local data-cache only */
extern void flush_instruction_cache_local(void); /* flushes local code-cache only */
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-powerpc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define SMP_CACHE_BYTES L1_CACHE_BYTES
#define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */

#if defined(__powerpc64__) && !defined(__ASSEMBLY__)
struct ppc64_caches {
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static inline int dma_get_cache_alignment(void)
#ifdef CONFIG_PPC64
/* no easy way to get cache size on all processors, so return
* the maximum possible, to be safe */
return (1 << L1_CACHE_SHIFT_MAX);
return (1 << INTERNODE_CACHE_SHIFT);
#else
/*
* Each processor family will define its own L1_CACHE_SHIFT,
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-s390/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#define L1_CACHE_BYTES 256
#define L1_CACHE_SHIFT 8
#define L1_CACHE_SHIFT_MAX 8 /* largest L1 which this arch supports */

#define ARCH_KMALLOC_MINALIGN 8

Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-sh/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))

#define L1_CACHE_SHIFT_MAX 5 /* largest L1 which this arch supports */

struct cache_info {
unsigned int ways;
unsigned int sets;
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-sh64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#define L1_CACHE_ALIGN_MASK (~(L1_CACHE_BYTES - 1))
#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES - 1)) & L1_CACHE_ALIGN_MASK)
#define L1_CACHE_SIZE_BYTES (L1_CACHE_BYTES << 10)
/* Largest L1 which this arch supports */
#define L1_CACHE_SHIFT_MAX 5

#ifdef MODULE
#define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-sparc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define L1_CACHE_SHIFT 5
#define L1_CACHE_BYTES 32
#define L1_CACHE_ALIGN(x) ((((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)))
#define L1_CACHE_SHIFT_MAX 5 /* largest L1 which this arch supports */

#define SMP_CACHE_BYTES 32

Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-sparc64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#define L1_CACHE_BYTES 32 /* Two 16-byte sub-blocks per line. */

#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
#define L1_CACHE_SHIFT_MAX 5 /* largest L1 which this arch supports */

#define SMP_CACHE_BYTES_SHIFT 6
#define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) /* L2 cache line size. */
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-um/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
# define L1_CACHE_SHIFT 5
#endif

/* XXX: this is valid for x86 and x86_64. */
#define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */

#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#endif
2 changes: 0 additions & 2 deletions trunk/include/asm-v850/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
#define L1_CACHE_SHIFT 4
#endif

#define L1_CACHE_SHIFT_MAX L1_CACHE_SHIFT

#endif /* __V850_CACHE_H__ */
1 change: 0 additions & 1 deletion trunk/include/asm-x86_64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
/* L1 cache line size */
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */

#endif

0 comments on commit ee325b6

Please sign in to comment.