memmap.c (57c8a661d95dff48dd9c2f2496139082bbaf241a) memmap.c (7e1c4e27928e5f87b9b1eaf06dc31773b2f1e7f1)
1/*
2 * linux/drivers/firmware/memmap.c
3 * Copyright (C) 2008 SUSE LINUX Products GmbH
4 * by Bernhard Walle <bernhard.walle@gmx.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License v2.0 as published by
8 * the Free Software Foundation

--- 319 unchanged lines hidden (view full) ---

328 * That function must be called before late_initcall.
329 *
330 * Return: 0 on success, or -ENOMEM if no memory could be allocated.
331 */
332int __init firmware_map_add_early(u64 start, u64 end, const char *type)
333{
334 struct firmware_map_entry *entry;
335
1/*
2 * linux/drivers/firmware/memmap.c
3 * Copyright (C) 2008 SUSE LINUX Products GmbH
4 * by Bernhard Walle <bernhard.walle@gmx.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License v2.0 as published by
8 * the Free Software Foundation

--- 319 unchanged lines hidden (view full) ---

328 * That function must be called before late_initcall.
329 *
330 * Return: 0 on success, or -ENOMEM if no memory could be allocated.
331 */
332int __init firmware_map_add_early(u64 start, u64 end, const char *type)
333{
334 struct firmware_map_entry *entry;
335
336 entry = memblock_alloc(sizeof(struct firmware_map_entry), 0);
336 entry = memblock_alloc(sizeof(struct firmware_map_entry),
337 SMP_CACHE_BYTES);
337 if (WARN_ON(!entry))
338 return -ENOMEM;
339
340 return firmware_map_add_entry(start, end, type, entry);
341}
342
343/**
344 * firmware_map_remove() - remove a firmware mapping entry

--- 82 unchanged lines hidden ---
338 if (WARN_ON(!entry))
339 return -ENOMEM;
340
341 return firmware_map_add_entry(start, end, type, entry);
342}
343
344/**
345 * firmware_map_remove() - remove a firmware mapping entry

--- 82 unchanged lines hidden ---