summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_cpu.c')
-rw-r--r--sys/kern/kern_cpu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c
index 34b1929..eb5bbb8 100644
--- a/sys/kern/kern_cpu.c
+++ b/sys/kern/kern_cpu.c
@@ -222,6 +222,7 @@ cf_set_method(device_t dev, const struct cf_level *level, int priority)
struct cf_saved_freq *saved_freq, *curr_freq;
struct pcpu *pc;
int cpu_id, error, i;
+ static int once;
sc = device_get_softc(dev);
error = 0;
@@ -233,8 +234,14 @@ cf_set_method(device_t dev, const struct cf_level *level, int priority)
* If it is, then return EBUSY and refuse to change the
* clock speed.
*/
- if (strcmp(timecounter->tc_name, "TSC") == 0)
+ if (strcmp(timecounter->tc_name, "TSC") == 0) {
+ if (!once) {
+ printf("cpufreq: frequency change with timecounter"
+ " TSC not allowed, see cpufreq(4)\n");
+ once = 1;
+ }
return (EBUSY);
+ }
CF_MTX_LOCK(&sc->lock);
OpenPOWER on IntegriCloud