Commit 758b3163 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka
Browse files

cobalt/init: ipipe: remove clock frequency override

Regarding the frequency of the clock hardware, the kernel knows
better. This parameter dates back to the dark ages when the kernel
might not have detected variations in (per-CPU) clock frequency, which
is no more an issue nowadays.

Actually, we do want to rely on the non-trivial logic the kernel has
to figure out that value dynamically for us.

So let's drop the user override for this parameter.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 64289ae2
......@@ -74,7 +74,6 @@ enabled (default), unless *linuxthreads* are used instead of *NPTL*.
System parameters renamed::
* xeno_hal.supported_cpus -> xenomai.supported_cpus
* xeno_hal.clockfreq -> xenomai.clockfreq
* xeno_hal.disable -> xenomai.state=disabled
* xeno_hal.cpufreq -> xenomai.cpufreq
* xeno_nucleus.watchdog_timeout -> xenomai.watchdog_timeout
......@@ -147,13 +147,6 @@ documentation about the
utility for a description of these states. | enabled
|xenomai.clockfreq=<hz-freq> | Override the real-time clock frequency
used in measuring time intervals with the given value. The most
accurate value is normally determined by the Cobalt core automatically
when initializing. It is strongly recommended *not* to use this option
unless you really know what you are doing. This value is expressed in
HZ. | 0 (=calibrated)
|xenomai.smi=<state> | *x86-specific*: Set the state of the SMI
workaround. The possible values are _disabled_, _detect_ and
_enabled_. See the discussion about link:dealing-with-x86-SMI[SMIs]
......@@ -11,9 +11,6 @@
#include <cobalt/kernel/sched.h>
#include <cobalt/kernel/clock.h>
static unsigned long clockfreq_arg;
module_param_named(clockfreq, clockfreq_arg, ulong, 0444);
int __init pipeline_init(void)
struct ipipe_sysinfo sysinfo;
......@@ -25,15 +22,7 @@ int __init pipeline_init(void)
if (clockfreq_arg == 0)
clockfreq_arg = sysinfo.sys_hrclock_freq;
if (clockfreq_arg == 0) {
printk(XENO_ERR "null clock frequency? Aborting.\n");
return -ENODEV;
cobalt_pipeline.clock_freq = clockfreq_arg;
cobalt_pipeline.clock_freq = sysinfo.sys_hrclock_freq;
if (cobalt_machine.init) {
ret = cobalt_machine.init();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment