diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/est.c | 5 | ||||
-rw-r--r-- | sys/arch/i386/i386/est.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/est.c b/sys/arch/amd64/amd64/est.c index 082f89bd05c..6eed7d27070 100644 --- a/sys/arch/amd64/amd64/est.c +++ b/sys/arch/amd64/amd64/est.c @@ -1,4 +1,4 @@ -/* $OpenBSD: est.c,v 1.12 2009/06/06 23:21:43 gwk Exp $ */ +/* $OpenBSD: est.c,v 1.13 2009/06/08 23:18:05 gwk Exp $ */ /* * Copyright (c) 2003 Michael Eriksson. * All rights reserved. @@ -416,6 +416,9 @@ est_init(struct cpu_info *ci) if (est_fqlist == NULL) return; + if (est_fqlist->n < 2) + return; + printf("%s: Enhanced SpeedStep %d MHz", cpu_device, cpuspeed); low = est_fqlist->table[est_fqlist->n - 1].mhz; diff --git a/sys/arch/i386/i386/est.c b/sys/arch/i386/i386/est.c index cadb224ecbf..335155404ce 100644 --- a/sys/arch/i386/i386/est.c +++ b/sys/arch/i386/i386/est.c @@ -1,4 +1,4 @@ -/* $OpenBSD: est.c,v 1.31 2009/06/06 23:21:43 gwk Exp $ */ +/* $OpenBSD: est.c,v 1.32 2009/06/08 23:18:05 gwk Exp $ */ /* * Copyright (c) 2003 Michael Eriksson. * All rights reserved. @@ -1167,6 +1167,9 @@ est_init(const char *cpu_device, int vendor) if (est_fqlist == NULL) return; + if (est_fqlist->n < 2) + return; + printf("%s: Enhanced SpeedStep %d MHz", cpu_device, cpuspeed); low = est_fqlist->table[est_fqlist->n - 1].mhz; |