mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 20:16:44 +07:00
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>
29 lines
684 B
C
29 lines
684 B
C
#ifndef _ASM_IA64_CACHE_H
|
|
#define _ASM_IA64_CACHE_H
|
|
|
|
#include <linux/config.h>
|
|
|
|
/*
|
|
* Copyright (C) 1998-2000 Hewlett-Packard Co
|
|
* David Mosberger-Tang <davidm@hpl.hp.com>
|
|
*/
|
|
|
|
/* Bytes per L1 (data) cache line. */
|
|
#define L1_CACHE_SHIFT CONFIG_IA64_L1_CACHE_SHIFT
|
|
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
|
|
|
|
#ifdef CONFIG_SMP
|
|
# define SMP_CACHE_SHIFT L1_CACHE_SHIFT
|
|
# define SMP_CACHE_BYTES L1_CACHE_BYTES
|
|
#else
|
|
/*
|
|
* The "aligned" directive can only _increase_ alignment, so this is
|
|
* safe and provides an easy way to avoid wasting space on a
|
|
* uni-processor:
|
|
*/
|
|
# define SMP_CACHE_SHIFT 3
|
|
# define SMP_CACHE_BYTES (1 << 3)
|
|
#endif
|
|
|
|
#endif /* _ASM_IA64_CACHE_H */
|