Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71032
b: refs/heads/master
c: 9bfa23d
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 17, 2007
1 parent 8c2b5ed commit 5569bc2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 45 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: b2bba72c10cdd907f73c57c8bdeb3354f8c233c6
refs/heads/master: 9bfa23df5632775bcb70b87975743046a71f7a3b
23 changes: 19 additions & 4 deletions trunk/include/asm-x86/cache.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#ifdef CONFIG_X86_32
# include "cache_32.h"
#else
# include "cache_64.h"
#ifndef _ARCH_X86_CACHE_H
#define _ARCH_X86_CACHE_H

/* L1 cache line size */
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

#ifdef CONFIG_X86_VSMP
/* vSMP Internode cacheline shift */
#define INTERNODE_CACHE_SHIFT (12)
#ifdef CONFIG_SMP
#define __cacheline_aligned_in_smp \
__attribute__((__aligned__(1 << (INTERNODE_CACHE_SHIFT)))) \
__attribute__((__section__(".data.page_aligned")))
#endif
#endif

#endif
14 changes: 0 additions & 14 deletions trunk/include/asm-x86/cache_32.h

This file was deleted.

26 changes: 0 additions & 26 deletions trunk/include/asm-x86/cache_64.h

This file was deleted.

0 comments on commit 5569bc2

Please sign in to comment.