1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

clk_fixed: quiet by default

We may attach several of these devices, but there is no meaningful
information added to dmesg. For example:

  ofwbus0: <Open Firmware Device Tree>
  clk_fixed0: <Fixed clock> on ofwbus0
  clk_fixed1: <Fixed clock> on ofwbus0
  clk_fixed2: <Fixed clock> on ofwbus0
  clk_fixed3: <Fixed clock> on ofwbus0
  clk_fixed4: <Fixed clock> on ofwbus0
  clk_fixed5: <Fixed clock> on ofwbus0
  clk_fixed6: <Fixed clock> on ofwbus0
  clk_fixed7: <Fixed clock> on ofwbus0
  clk_fixed8: <Fixed clock> on ofwbus0
  clk_fixed9: <Fixed clock> on ofwbus0
  clk_fixed10: <Fixed clock> on ofwbus0
  clk_fixed11: <Fixed clock> on ofwbus0

To reduce this noise, quiet the devices for by default. For verbose
boot, the message will be emitted.

Reviewed by:	manu
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44266
This commit is contained in:
Mitchell Horne 2024-03-08 10:08:49 -04:00
parent 6e66bb9fc3
commit 1cb9f6f641

View File

@ -163,13 +163,18 @@ clk_fixed_probe(device_t dev)
return (ENXIO);
}
device_set_desc(dev, "Fixed clock");
return (BUS_PROBE_DEFAULT);
break;
case CLK_TYPE_FIXED_FACTOR:
device_set_desc(dev, "Fixed factor clock");
return (BUS_PROBE_DEFAULT);
break;
default:
return (ENXIO);
}
if (!bootverbose)
device_quiet(dev);
return (BUS_PROBE_DEFAULT);
}
static int