Skip to content

Commit

Permalink
x86: unify include/asm/cache_32/64.h
Browse files Browse the repository at this point in the history
Same file, except for whitespace, comment formatting and the extra
defines in _64, which are conditional on VSMP anyway.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 17, 2007
1 parent b2bba72 commit 9bfa23d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 44 deletions.
23 changes: 19 additions & 4 deletions 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 include/asm-x86/cache_32.h

This file was deleted.

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

This file was deleted.

0 comments on commit 9bfa23d

Please sign in to comment.