diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-10-24 06:30:26 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-10-24 06:30:26 +0000 |
commit | ac6d65290341e4c9e3a13e4287efc25d8e4ba282 (patch) | |
tree | d2dd92ef0fb71642837d26fa7059e3c7fc29ff4d /sys | |
parent | 270ba2e5f5758b9e5320346f70654301231d9adc (diff) |
Don't spam the dmesg.
ok deraadt
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/pctr.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/pctr.c | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/sys/arch/amd64/amd64/pctr.c b/sys/arch/amd64/amd64/pctr.c index 975a9d3e6a5..e47f4ddb6e8 100644 --- a/sys/arch/amd64/amd64/pctr.c +++ b/sys/arch/amd64/amd64/pctr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.c,v 1.2 2007/10/17 02:30:26 deraadt Exp $ */ +/* $OpenBSD: pctr.c,v 1.3 2007/10/24 06:30:21 mikeb Exp $ */ /* * Copyright (c) 2007 Mike Belopuhov @@ -86,14 +86,12 @@ pctrattach(int num) "\torq %1,%%rax\n" "\tmovq %%rax,%%cr4" :: "i" (~CR4_TSD), "i" (CR4_PCE) : "rax"); - printf("pctr: user-level performance counters enabled\n"); } else if (usetsc) { /* Enable RDTSC instruction from user-level. */ __asm __volatile("movq %%cr4,%%rax\n" "\tandq %0,%%rax\n" "\tmovq %%rax,%%cr4" :: "i" (~CR4_TSD) : "rax"); - printf("pctr: user-level cycle counter enabled\n"); } } diff --git a/sys/arch/i386/i386/pctr.c b/sys/arch/i386/i386/pctr.c index 3eb1f869026..dfb4905afb5 100644 --- a/sys/arch/i386/i386/pctr.c +++ b/sys/arch/i386/i386/pctr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.c,v 1.23 2007/10/17 02:30:25 deraadt Exp $ */ +/* $OpenBSD: pctr.c,v 1.24 2007/10/24 06:30:25 mikeb Exp $ */ /* * Pentium performance counter driver for OpenBSD. @@ -90,17 +90,13 @@ pctrattach(int num) "\torl %1,%%eax\n" "\tmovl %%eax,%%cr4" :: "i" (~CR4_TSD), "i" (CR4_PCE) : "eax"); - printf("pctr: user-level performance counters enabled\n"); } else if (usetsc) { /* Enable RDTSC instruction from user-level. */ __asm __volatile ("movl %%cr4,%%eax\n" "\tandl %0,%%eax\n" "\tmovl %%eax,%%cr4" :: "i" (~CR4_TSD) : "eax"); - printf("pctr: user-level cycle counter enabled\n"); - } else if (usep5ctr) - printf("pctr: 586-class performance counters and user-level " - " cycle counter enabled\n"); + } } int |