summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/prof_machdep.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-12-14 18:21:34 +0000
committerbde <bde@FreeBSD.org>1998-12-14 18:21:34 +0000
commit8079dde37894d2447d8857ab621bb5da4dafd666 (patch)
tree47a74c7d9bff397a27b412613f1d691540013160 /sys/i386/isa/prof_machdep.c
parent4b628fa86de9e1f3e478283a0118b2209ccc5885 (diff)
downloadFreeBSD-src-8079dde37894d2447d8857ab621bb5da4dafd666.zip
FreeBSD-src-8079dde37894d2447d8857ab621bb5da4dafd666.tar.gz
Ifdefed the declarations of conditionally used variables.
Diffstat (limited to 'sys/i386/isa/prof_machdep.c')
-rw-r--r--sys/i386/isa/prof_machdep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/isa/prof_machdep.c b/sys/i386/isa/prof_machdep.c
index f2849ad..60167ea 100644
--- a/sys/i386/isa/prof_machdep.c
+++ b/sys/i386/isa/prof_machdep.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: prof_machdep.c,v 1.9 1998/04/15 17:45:43 bde Exp $
+ * $Id: prof_machdep.c,v 1.10 1998/04/19 15:41:06 bde Exp $
*/
#ifdef GUPROF
@@ -171,7 +171,8 @@ cputime()
{
u_int count;
int delta;
-#ifdef I586_PMC_GUPROF
+#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) && \
+ defined(PERFMON) && defined(I586_PMC_GUPROF)
u_quad_t event_count;
#endif
u_char high, low;
@@ -229,9 +230,11 @@ static int
sysctl_machdep_cputime_clock SYSCTL_HANDLER_ARGS
{
int clock;
- int event;
int error;
+#if defined(PERFMON) && defined(I586_PMC_GUPROF)
+ int event;
struct pmc pmc;
+#endif
clock = cputime_clock;
#if defined(PERFMON) && defined(I586_PMC_GUPROF)
OpenPOWER on IntegriCloud