opnsense-src/sys/powerpc
Zhenlei Huang b61fbbed73 powerpc: Remove flag CTLFLAG_TUN from sysctl knob hw.platform
Prior to change [1] this flag is useless but harmless. After the change
plat_name[] will be fetched from kernel environment after invoking the
platform probe function `platform_probe_and_attach()`. The probe function
runs at early boot stage prior to `mi_startup()` thus it is too late and
pointless to set plat_name[] after the probe.

Nathan mentioned that the logic to specify the platform pre-dates the
powerpc64 work, and is from the original pre-FDT Book-E bringup from
like 2008, so it's irrelevant these days. Instead of fixing setting the
sysctl knob hw.platform, let's clean it up now.

[1] 3da1cf1e88 Extend the meaning of the CTLFLAG_TUN flag to ...

Discussed with:	nwhitehorn
Reviewed by:	olce (previous version), jhibbits, #powerpc
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D48897
2025-02-13 22:42:45 +08:00
..
aim pmap_growkernel: Use VM_ALLOC_NOFREE when allocating pagetable pages 2024-07-30 17:38:24 +02:00
amigaone sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
booke libkern: add ilog2 macro 2024-06-03 11:37:55 -05:00
conf conf: Remove kernel stack swapping support, part 12 2024-07-29 01:43:59 +00:00
cpufreq sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fpu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
include sys: Add cpu_update_pcb hook 2025-01-31 15:40:29 -05:00
mambo Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
mikrotik sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mpc85xx Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
ofw Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
powermac Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
powernv Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
powerpc powerpc: Remove flag CTLFLAG_TUN from sysctl knob hw.platform 2025-02-13 22:42:45 +08:00
ps3 ps3disk.c: Rewrite ps3disk_transfer 2025-01-24 12:40:34 -07:00
pseries Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
psim Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00