Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136664705
D48897.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
D48897.diff
View Options
diff --git a/sys/powerpc/powerpc/platform.c b/sys/powerpc/powerpc/platform.c
--- a/sys/powerpc/powerpc/platform.c
+++ b/sys/powerpc/powerpc/platform.c
@@ -65,9 +65,9 @@
static struct kobj_ops plat_kernel_kops;
static struct platform_kobj plat_kernel_obj;
-static char plat_name[64] = "";
-SYSCTL_STRING(_hw, OID_AUTO, platform, CTLFLAG_RDTUN,
- plat_name, 0, "Platform currently in use");
+static char plat_name[64];
+SYSCTL_CONST_STRING(_hw, OID_AUTO, platform, CTLFLAG_RD, plat_name,
+ "Platform currently in use");
static struct mem_affinity mem_info[VM_PHYSSEG_MAX + 1];
static int vm_locality_table[MAXMEMDOM * MAXMEMDOM];
@@ -364,16 +364,7 @@
if (prio > 0)
continue;
- /*
- * Check if this module was specifically requested through
- * the loader tunable we provide.
- */
- if (strcmp(platp->name,plat_name) == 0) {
- plat_def_impl = platp;
- break;
- }
-
- /* Otherwise, see if it is better than our current best */
+ /* See if it is better than our current best */
if (plat_def_impl == NULL || prio > best_prio) {
best_prio = prio;
plat_def_impl = platp;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 19, 7:35 PM (6 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25668815
Default Alt Text
D48897.diff (1 KB)
Attached To
Mode
D48897: powerpc: Remove flag CTLFLAG_TUN from sysctl knob hw.platform
Attached
Detach File
Event Timeline
Log In to Comment