File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -735,7 +735,7 @@ int __init_memblock memblock_add(phys_addr_t base, phys_addr_t size)
735
735
/**
736
736
* memblock_validate_numa_coverage - check if amount of memory with
737
737
* no node ID assigned is less than a threshold
738
- * @threshold_bytes: maximal number of pages that can have unassigned node
738
+ * @threshold_bytes: maximal memory size that can have unassigned node
739
739
* ID (in bytes).
740
740
*
741
741
* A buggy firmware may report memory that does not belong to any node.
@@ -755,7 +755,7 @@ bool __init_memblock memblock_validate_numa_coverage(unsigned long threshold_byt
755
755
nr_pages += end_pfn - start_pfn ;
756
756
}
757
757
758
- if ((nr_pages << PAGE_SHIFT ) >= threshold_bytes ) {
758
+ if ((nr_pages << PAGE_SHIFT ) > threshold_bytes ) {
759
759
mem_size_mb = memblock_phys_mem_size () >> 20 ;
760
760
pr_err ("NUMA: no nodes coverage for %luMB of %luMB RAM\n" ,
761
761
(nr_pages << PAGE_SHIFT ) >> 20 , mem_size_mb );
You can’t perform that action at this time.
0 commit comments