opnsense-src/sys/powerpc
Zhenlei Huang 7775f4c5c7 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

(cherry picked from commit b61fbbed73ea3bf0c84589b56cca160c46a3739d)
2025-02-18 23:14:49 +08:00
..
aim powerpc pmap: initialize kernel pmap radix trie 2023-09-19 21:09:37 -05:00
amigaone sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
booke libkern: add ilog2 macro 2025-02-10 04:27:12 -06:00
conf sys: add conf/std.debug, generic debugging options 2024-10-09 10:44:35 +02:00
cpufreq sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
fpu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
include atomics: Constify loads 2025-01-16 19:06:53 +01:00
mambo sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mikrotik sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpc85xx mpc85xx: Use device_set_desc() 2024-06-27 11:27:41 -04:00
ofw powerpc: Bump maximum number of FDT reserved mem entries 2024-04-01 22:09:57 -04:00
powermac powerpc: better handling of shutdown flags 2023-12-08 18:02:44 -04:00
powernv powerpc: better handling of shutdown flags 2023-12-08 18:02:44 -04:00
powerpc powerpc: Remove flag CTLFLAG_TUN from sysctl knob hw.platform 2025-02-18 23:14:49 +08:00
ps3 ps3: add elfv2 support 2024-10-23 22:08:00 -04:00
pseries powerpc: better handling of shutdown flags 2023-12-08 18:02:44 -04:00
psim sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00