Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152798707
D6151.id15736.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
411 B
Referenced Files
None
Subscribers
None
D6151.id15736.diff
View Options
Index: sys/arm/arm/platform.c
===================================================================
--- sys/arm/arm/platform.c
+++ sys/arm/arm/platform.c
@@ -181,8 +181,16 @@
void
platform_mp_setmaxid(void)
{
+ int ncpu;
PLATFORM_MP_SETMAXID(plat_obj);
+
+ if (TUNABLE_INT_FETCH("hw.ncpu", &ncpu)) {
+ if (ncpu >= 1 && ncpu <= mp_ncpus) {
+ mp_ncpus = ncpu;
+ mp_maxid = ncpu - 1;
+ }
+ }
}
void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 18, 4:46 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31698695
Default Alt Text
D6151.id15736.diff (411 B)
Attached To
Mode
D6151: PLATFORM arm honor hw.ncpu tunable
Attached
Detach File
Event Timeline
Log In to Comment