k8_powernow_init_main: Initialize k8pnow_current_state.

This commit is contained in:
rmind 2007-04-04 02:56:25 +00:00
parent 9464b9ab22
commit f49599932b
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: powernow_k8.c,v 1.18 2007/04/03 07:56:08 xtraeme Exp $ */
/* $NetBSD: powernow_k8.c,v 1.19 2007/04/04 02:56:25 rmind Exp $ */
/* $OpenBSD: powernow-k8.c,v 1.8 2006/06/16 05:58:50 gwk Exp $ */
/*-
@ -66,7 +66,7 @@
/* AMD POWERNOW K8 driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.18 2007/04/03 07:56:08 xtraeme Exp $");
__KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.19 2007/04/04 02:56:25 rmind Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -370,6 +370,8 @@ k8_powernow_init_main(void)
freq_names_len = 0;
cpuname = curcpu()->ci_dev->dv_xname;
k8pnow_current_state = NULL;
cstate = malloc(sizeof(struct powernow_cpu_state), M_DEVBUF, M_NOWAIT);
if (!cstate) {
DPRINTF(("%s: cstate failed to malloc!\n", __func__));