Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109507192
D34853.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
720 B
Referenced Files
None
Subscribers
None
D34853.diff
View Options
Index: sys/vm/vm_phys.c
===================================================================
--- sys/vm/vm_phys.c
+++ sys/vm/vm_phys.c
@@ -1660,7 +1660,10 @@
vm_paddr_t
vm_phys_early_alloc(int domain, size_t alloc_size)
{
- int i, mem_index, biggestone;
+#ifdef NUMA
+ int mem_index;
+#endif
+ int i, biggestone;
vm_paddr_t pa, mem_start, mem_end, size, biggestsize, align;
KASSERT(domain == -1 || (domain >= 0 && domain < vm_ndomains),
@@ -1672,10 +1675,10 @@
* the phys_avail selection below.
*/
biggestsize = 0;
- mem_index = 0;
mem_start = 0;
mem_end = -1;
#ifdef NUMA
+ mem_index = 0;
if (mem_affinity != NULL) {
for (i = 0;; i++) {
size = mem_affinity[i].end - mem_affinity[i].start;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 11:51 PM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16503133
Default Alt Text
D34853.diff (720 B)
Attached To
Mode
D34853: vm_phys_early_alloc: mem_index is only used under #ifdef NUMA.
Attached
Detach File
Event Timeline
Log In to Comment