--- initial
+++ final
@@ -1,47 +1,47 @@
 static void __init request_standard_resources(const struct machine_desc *mdesc) {
   struct memblock_region *region;
   struct resource *res;
   kernel_code.start = virt_to_phys(_text);
   kernel_code.end = virt_to_phys(__init_begin - 1);
   kernel_data.start = virt_to_phys(_sdata);
   kernel_data.end = virt_to_phys(_end - 1);
   for_each_memblock(memory, region) {
     phys_addr_t start = __pfn_to_phys(memblock_region_memory_base_pfn(region));
     phys_addr_t end = __pfn_to_phys(memblock_region_memory_end_pfn(region)) - 1;
     unsigned long boot_alias_start;
     /*
      * Some systems have a special memory alias which is only
      * used for booting.  We need to advertise this region to
      * kexec-tools so they know where bootable RAM is located.
      */
     boot_alias_start = phys_to_idmap(start);
     if (arm_has_idmap_alias() && boot_alias_start != IDMAP_INVALID_ADDR) {
-      res = memblock_alloc(sizeof(*res), 0);
+      res = memblock_alloc(sizeof(*res), SMP_CACHE_BYTES);
       res->name = "System RAM (boot alias)";
       res->start = boot_alias_start;
       res->end = phys_to_idmap(end);
       res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
       request_resource(&iomem_resource, res);
     }
-    res = memblock_alloc(sizeof(*res), 0);
+    res = memblock_alloc(sizeof(*res), SMP_CACHE_BYTES);
     res->name = "System RAM";
     res->start = start;
     res->end = end;
     res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
     request_resource(&iomem_resource, res);
     if (kernel_code.start >= res->start && kernel_code.end <= res->end) request_resource(res, &kernel_code);
     if (kernel_data.start >= res->start && kernel_data.end <= res->end) request_resource(res, &kernel_data);
   }
   if (mdesc->video_start) {
     video_ram.start = mdesc->video_start;
     video_ram.end = mdesc->video_end;
     request_resource(&iomem_resource, &video_ram);
   }
   /*
    * Some machines don't have the possibility of ever
    * possessing lp0, lp1 or lp2
    */
   if (mdesc->reserve_lp0) request_resource(&ioport_resource, &lp0);
   if (mdesc->reserve_lp1) request_resource(&ioport_resource, &lp1);
   if (mdesc->reserve_lp2) request_resource(&ioport_resource, &lp2);
 }<sep>@@
expression size, min_addr, max_addr, nid;
@@
(
- memblock_alloc_try_nid_raw(size, 0, min_addr, max_addr, nid)
+ memblock_alloc_try_nid_raw(size, SMP_CACHE_BYTES, min_addr, max_addr,nid)
|
- memblock_alloc_try_nid_nopanic(size, 0, min_addr, max_addr, nid)
+ memblock_alloc_try_nid_nopanic(size, SMP_CACHE_BYTES, min_addr, max_addr,nid)
|
- memblock_alloc_try_nid(size, 0, min_addr, max_addr, nid)
+ memblock_alloc_try_nid(size, SMP_CACHE_BYTES, min_addr, max_addr, nid)
|
- memblock_alloc(size, 0)
+ memblock_alloc(size, SMP_CACHE_BYTES)
|
- memblock_alloc_raw(size, 0)
+ memblock_alloc_raw(size, SMP_CACHE_BYTES)
|
- memblock_alloc_from(size, 0, min_addr)
+ memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr)
|
- memblock_alloc_nopanic(size, 0)
+ memblock_alloc_nopanic(size, SMP_CACHE_BYTES)
|
- memblock_alloc_low(size, 0)
+ memblock_alloc_low(size, SMP_CACHE_BYTES)
|
- memblock_alloc_low_nopanic(size, 0)
+ memblock_alloc_low_nopanic(size, SMP_CACHE_BYTES)
|
- memblock_alloc_from_nopanic(size, 0, min_addr)
+ memblock_alloc_from_nopanic(size, SMP_CACHE_BYTES, min_addr)
|
- memblock_alloc_node(size, 0, nid)
+ memblock_alloc_node(size, SMP_CACHE_BYTES, nid)
)