forked from luck/tmp_suning_uos_patched
1fd73c6b67
Kill L1_CACHE_SHIFT from all arches. Since L1_CACHE_SHIFT_MAX is not used anymore with the introduction of INTERNODE_CACHE, kill L1_CACHE_SHIFT_MAX. Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org> Signed-off-by: Shai Fultheim <shai@scalex86.org> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 lines
470 B
C
19 lines
470 B
C
#ifndef __UM_CACHE_H
|
|
#define __UM_CACHE_H
|
|
|
|
#include <linux/config.h>
|
|
|
|
#if defined(CONFIG_UML_X86) && !defined(CONFIG_64BIT)
|
|
# define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
|
|
#elif defined(CONFIG_UML_X86) /* 64-bit */
|
|
# define L1_CACHE_SHIFT 6 /* Should be 7 on Intel */
|
|
#else
|
|
/* XXX: this was taken from x86, now it's completely random. Luckily only
|
|
* affects SMP padding. */
|
|
# define L1_CACHE_SHIFT 5
|
|
#endif
|
|
|
|
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
|
|
|
|
#endif
|