summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-05-23 04:03:54 +0000
committeralc <alc@FreeBSD.org>2008-05-23 04:03:54 +0000
commit964def13e21f87de612c9d4ca76700f87ac7481d (patch)
tree7b71ba6c9ad6e017f630dbd471f1a45b660cb56e /sys/amd64
parent7518e47337db78bab424b42d623f97fcc72f8613 (diff)
downloadFreeBSD-src-964def13e21f87de612c9d4ca76700f87ac7481d.zip
FreeBSD-src-964def13e21f87de612c9d4ca76700f87ac7481d.tar.gz
The VM system no longer uses setPQL2(). Remove it and its helpers.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/identcpu.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c
index f0afb9f..59d3916 100644
--- a/sys/amd64/amd64/identcpu.c
+++ b/sys/amd64/amd64/identcpu.c
@@ -71,8 +71,6 @@ void panicifcpuunsupported(void);
static void print_AMD_info(void);
static void print_AMD_assoc(int i);
-void setPQL2(int *const size, int *const ways);
-static void setPQL2_AMD(int *const size, int *const ways);
int cpu_class;
char machine[] = "amd64";
@@ -550,30 +548,3 @@ print_AMD_info(void)
print_AMD_l2_assoc((regs[2] >> 12) & 0x0f);
}
}
-
-static void
-setPQL2_AMD(int *const size, int *const ways)
-{
- if (cpu_exthigh >= 0x80000006) {
- u_int regs[4];
-
- do_cpuid(0x80000006, regs);
- *size = regs[2] >> 16;
- *ways = (regs[2] >> 12) & 0x0f;
- switch (*ways) {
- case 0: /* disabled/not present */
- case 15: /* fully associative */
- default: *ways = 1; break; /* reserved configuration */
- case 4: *ways = 4; break;
- case 6: *ways = 8; break;
- case 8: *ways = 16; break;
- }
- }
-}
-
-void
-setPQL2(int *const size, int *const ways)
-{
- if (strcmp(cpu_vendor, "AuthenticAMD") == 0)
- setPQL2_AMD(size, ways);
-}
OpenPOWER on IntegriCloud