mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 02:21:15 +00:00
Quicklist support for sparc64
I ported this to sparc64 as per the patch below, tested on UP SunBlade1500 and 24 cpu Niagara T1000. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Andi Kleen <ak@suse.de> Cc: "Luck, Tony" <tony.luck@intel.com> Cc: William Lee Irwin III <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6225e93735
commit
3a2cba993b
4 changed files with 19 additions and 37 deletions
|
@ -164,30 +164,6 @@ unsigned long sparc64_kern_sec_context __read_mostly;
|
|||
|
||||
int bigkernel = 0;
|
||||
|
||||
struct kmem_cache *pgtable_cache __read_mostly;
|
||||
|
||||
static void zero_ctor(void *addr, struct kmem_cache *cache, unsigned long flags)
|
||||
{
|
||||
clear_page(addr);
|
||||
}
|
||||
|
||||
extern void tsb_cache_init(void);
|
||||
|
||||
void pgtable_cache_init(void)
|
||||
{
|
||||
pgtable_cache = kmem_cache_create("pgtable_cache",
|
||||
PAGE_SIZE, PAGE_SIZE,
|
||||
SLAB_HWCACHE_ALIGN |
|
||||
SLAB_MUST_HWCACHE_ALIGN,
|
||||
zero_ctor,
|
||||
NULL);
|
||||
if (!pgtable_cache) {
|
||||
prom_printf("Could not create pgtable_cache\n");
|
||||
prom_halt();
|
||||
}
|
||||
tsb_cache_init();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_DCFLUSH
|
||||
atomic_t dcpage_flushes = ATOMIC_INIT(0);
|
||||
#ifdef CONFIG_SMP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue