diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2012-03-27 07:04:34 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2012-03-27 07:04:34 +0000 |
commit | 66e4547bc0aa57d25b6b1f30ed4515d196f51677 (patch) | |
tree | 1d60bb98729658bdaaaab280cb4f05893f04d447 /sys/arch/i386 | |
parent | b74f031094ba7c74fef80101c104faa1c33cdefd (diff) |
only attempt to calculate bus_clock if we can't get tables from acpi
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/est.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/arch/i386/i386/est.c b/sys/arch/i386/i386/est.c index fd6cd4a4121..ac25b554cdd 100644 --- a/sys/arch/i386/i386/est.c +++ b/sys/arch/i386/i386/est.c @@ -1,4 +1,4 @@ -/* $OpenBSD: est.c,v 1.38 2012/03/27 06:44:01 jsg Exp $ */ +/* $OpenBSD: est.c,v 1.39 2012/03/27 07:04:33 jsg Exp $ */ /* * Copyright (c) 2003 Michael Eriksson. * All rights reserved. @@ -1077,12 +1077,15 @@ est_init(struct cpu_info *ci, int vendor) est_fqlist = est_acpi_init(); #endif - if (vendor == CPUVENDOR_VIA) - cyrix3_get_bus_clock(ci); - else if (ci->ci_family == 0xf) - p4_get_bus_clock(ci); - else if (ci->ci_family == 6) - p3_get_bus_clock(ci); + /* bus_clock is only used if we can't get values from ACPI */ + if (est_fqlist == NULL) { + if (vendor == CPUVENDOR_VIA) + cyrix3_get_bus_clock(ci); + else if (ci->ci_family == 0xf) + p4_get_bus_clock(ci); + else if (ci->ci_family == 6) + p3_get_bus_clock(ci); + } /* * Interpreting the values of PERF_STATUS is not valid |