Page MenuHomeFreeBSD

D6151.1794998068.diff
No OneTemporary

Authored By
Unknown
Size
426 B
Referenced Files
None
Subscribers
None

D6151.1794998068.diff

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

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)

Event Timeline