Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108633434
D47184.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47184.diff
View Options
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c
--- a/sys/kern/kern_cpu.c
+++ b/sys/kern/kern_cpu.c
@@ -97,6 +97,7 @@
printf("cpufreq: " msg); \
} while (0)
+static int cpufreq_probe(device_t dev);
static int cpufreq_attach(device_t dev);
static void cpufreq_startup_task(void *ctx, int pending);
static int cpufreq_detach(device_t dev);
@@ -116,7 +117,7 @@
static int cpufreq_settings_sysctl(SYSCTL_HANDLER_ARGS);
static device_method_t cpufreq_methods[] = {
- DEVMETHOD(device_probe, bus_generic_probe),
+ DEVMETHOD(device_probe, cpufreq_probe),
DEVMETHOD(device_attach, cpufreq_attach),
DEVMETHOD(device_detach, cpufreq_detach),
@@ -141,6 +142,13 @@
SYSCTL_INT(_debug_cpufreq, OID_AUTO, verbose, CTLFLAG_RWTUN, &cf_verbose, 1,
"Print verbose debugging messages");
+static int
+cpufreq_probe(device_t dev)
+{
+ device_set_desc(dev, "CPU frequency control");
+ return (BUS_PROBE_DEFAULT);
+}
+
/*
* This is called as the result of a hardware specific frequency control driver
* calling cpufreq_register. It provides a general interface for system wide
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 12:18 AM (8 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16226506
Default Alt Text
D47184.diff (1 KB)
Attached To
Mode
D47184: cpufreq: Use a real device_probe routine
Attached
Detach File
Event Timeline
Log In to Comment