files.x86 isn't included by Xen kernels, so opt_powernow_k8.h never gets

created by config(1), and thus it's not safe to use it in cpuvar.h.

Simply declare the prototype for k8_powernow_init in powernow.h.  No need
to #ifdef protect a prototype, after all, only its users.

Un-breaks build of Xen kernels.
This commit is contained in:
cube 2006-08-08 16:34:34 +00:00
parent fd456db2e7
commit f48480c398
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpuvar.h,v 1.4 2006/08/07 20:58:23 xtraeme Exp $ */
/* $NetBSD: cpuvar.h,v 1.5 2006/08/08 16:34:34 cube Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -107,10 +107,4 @@ void identifycpu(struct cpu_info *);
void cpu_init(struct cpu_info *);
void cpu_init_first(void);
#include "opt_powernow_k8.h"
#ifdef POWERNOW_K8
void k8_powernow_init(void);
#endif
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: powernow.h,v 1.2 2006/08/07 20:58:23 xtraeme Exp $ */
/* $NetBSD: powernow.h,v 1.3 2006/08/08 16:34:34 cube Exp $ */
/*-
* Copyright (c) 2004 Martin Végiard.
@ -178,4 +178,6 @@ struct powernow_pst_s {
uint32_t powernow_probe(struct cpu_info *, uint32_t);
int powernow_extflags(struct cpu_info *, uint32_t);
void k8_powernow_init(void);
#endif