diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-11-24 13:52:41 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-11-24 13:52:41 +0000 |
commit | 1769360dc0345c45acea52cf779a2531149d5483 (patch) | |
tree | 990a6dc502aa3fdc9ddbbafa7da531ad751c739d /sys/arch/amd64 | |
parent | 22cf3f4dc18f4ca08d182c94036a857ca85ae64e (diff) |
Remove commented-out code messing with uvmexp.
ok jca@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/cpu.c | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c index cf7b5c6dfd7..c52b737883d 100644 --- a/sys/arch/amd64/amd64/cpu.c +++ b/sys/arch/amd64/amd64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.150 2020/09/13 11:53:16 jsg Exp $ */ +/* $OpenBSD: cpu.c,v 1.151 2020/11/24 13:52:40 mpi Exp $ */ /* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -419,44 +419,6 @@ cpu_match(struct device *parent, void *match, void *aux) return 1; } -static void -cpu_vm_init(struct cpu_info *ci) -{ - int ncolors = 2, i; - - for (i = CAI_ICACHE; i <= CAI_L2CACHE; i++) { - struct x86_cache_info *cai; - int tcolors; - - cai = &ci->ci_cinfo[i]; - - tcolors = atop(cai->cai_totalsize); - switch(cai->cai_associativity) { - case 0xff: - tcolors = 1; /* fully associative */ - break; - case 0: - case 1: - break; - default: - tcolors /= cai->cai_associativity; - } - ncolors = max(ncolors, tcolors); - } - -#ifdef notyet - /* - * Knowing the size of the largest cache on this CPU, re-color - * our pages. - */ - if (ncolors <= uvmexp.ncolors) - return; - printf("%s: %d page colors\n", ci->ci_dev->dv_xname, ncolors); - uvm_page_recolor(ncolors); -#endif -} - - void cpu_idle_mwait_cycle(void); void cpu_init_mwait(struct cpu_softc *); @@ -689,7 +651,6 @@ cpu_attach(struct device *parent, struct device *self, void *aux) default: panic("unknown processor type??"); } - cpu_vm_init(ci); #if defined(MULTIPROCESSOR) if (mp_verbose) { |