Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177671924
D6151.1794998068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
426 B
Referenced Files
None
Subscribers
None
D6151.1794998068.diff
View Options
Index: head/sys/arm/arm/platform.c
===================================================================
--- head/sys/arm/arm/platform.c
+++ head/sys/arm/arm/platform.c
@@ -209,8 +209,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
Wed, Nov 18, 10:34 AM (3 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41801307
Default Alt Text
D6151.1794998068.diff (426 B)
Attached To
Mode
D6151: PLATFORM arm honor hw.ncpu tunable
Attached
Detach File
Event Timeline