Mike Rapoport
c7cc8d7731
hexagon: drop empty and unused free_initrd_mem
...
hexagon never reserves or initializes initrd and the only mention of it is
the empty free_initrd_mem() function.
As we have a generic implementation of free_initrd_mem(), there is no need
to define an empty stub for the hexagon implementation and it can be
dropped.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected] >
Reviewed-by: Christoph Hellwig <[email protected] >
Cc: Richard Kuo <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2019-09-25 17:51:42 -07:00
Thomas Gleixner
08dbd0f8ef
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 267
...
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 and
only version 2 as published by the free software foundation this
program is distributed in the hope that it will be useful but
without any warranty without even the implied warranty of
merchantability or fitness for a particular purpose see the gnu
general public license for more details you should have received a
copy of the gnu general public license along with this program if
not write to the free software foundation inc 51 franklin street
fifth floor boston ma 02110 1301 usa
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 94 file(s).
Signed-off-by: Thomas Gleixner <[email protected] >
Reviewed-by: Allison Randal <[email protected] >
Reviewed-by: Richard Fontana <[email protected] >
Reviewed-by: Alexios Zavras <[email protected] >
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2019-06-05 17:30:29 +02:00
Mike Rapoport
522c991945
hexagon: switch over to generic free_initmem()
...
hexagon implementation of free_initmem() is currently empty and marked
with comment
* Todo: free pages between __init_begin and __init_end; possibly
* some devtree related stuff as well.
Switch it to the generic implementation.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected] >
Reviewed-by: Andrew Morton <[email protected] >
Cc: Christoph Hellwig <[email protected] >
Cc: Palmer Dabbelt <[email protected] >
Cc: Richard Kuo <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2019-05-14 09:47:47 -07:00
Mike Rapoport
57c8a661d9
mm: remove include/linux/bootmem.h
...
Move remaining definitions and declarations from include/linux/bootmem.h
into include/linux/memblock.h and remove the redundant header.
The includes were replaced with the semantic patch below and then
semi-automated removal of duplicated '#include <linux/memblock.h>
@@
@@
- #include <linux/bootmem.h>
+ #include <linux/memblock.h>
[[email protected] : dma-direct: fix up for the removal of linux/bootmem.h]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected] : powerpc: fix up for removal of linux/bootmem.h]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected] : x86/kaslr, ACPI/NUMA: fix for linux/bootmem.h removal]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected] >
Signed-off-by: Stephen Rothwell <[email protected] >
Acked-by: Michal Hocko <[email protected] >
Cc: Catalin Marinas <[email protected] >
Cc: Chris Zankel <[email protected] >
Cc: "David S. Miller" <[email protected] >
Cc: Geert Uytterhoeven <[email protected] >
Cc: Greentime Hu <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Guan Xuetao <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: "James E.J. Bottomley" <[email protected] >
Cc: Jonas Bonn <[email protected] >
Cc: Jonathan Corbet <[email protected] >
Cc: Ley Foon Tan <[email protected] >
Cc: Mark Salter <[email protected] >
Cc: Martin Schwidefsky <[email protected] >
Cc: Matt Turner <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Palmer Dabbelt <[email protected] >
Cc: Paul Burton <[email protected] >
Cc: Richard Kuo <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: Rich Felker <[email protected] >
Cc: Russell King <[email protected] >
Cc: Serge Semin <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Vineet Gupta <[email protected] >
Cc: Yoshinori Sato <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2018-10-31 08:54:16 -07:00
Mike Rapoport
c6ffc5ca8f
memblock: rename free_all_bootmem to memblock_free_all
...
The conversion is done using
sed -i 's@free_all_bootmem@memblock_free_all@' \
$(git grep -l free_all_bootmem)
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected] >
Acked-by: Michal Hocko <[email protected] >
Cc: Catalin Marinas <[email protected] >
Cc: Chris Zankel <[email protected] >
Cc: "David S. Miller" <[email protected] >
Cc: Geert Uytterhoeven <[email protected] >
Cc: Greentime Hu <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Guan Xuetao <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: "James E.J. Bottomley" <[email protected] >
Cc: Jonas Bonn <[email protected] >
Cc: Jonathan Corbet <[email protected] >
Cc: Ley Foon Tan <[email protected] >
Cc: Mark Salter <[email protected] >
Cc: Martin Schwidefsky <[email protected] >
Cc: Matt Turner <[email protected] >
Cc: Michael Ellerman <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Palmer Dabbelt <[email protected] >
Cc: Paul Burton <[email protected] >
Cc: Richard Kuo <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: Rich Felker <[email protected] >
Cc: Russell King <[email protected] >
Cc: Serge Semin <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Tony Luck <[email protected] >
Cc: Vineet Gupta <[email protected] >
Cc: Yoshinori Sato <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2018-10-31 08:54:16 -07:00
Mike Rapoport
426dcd4b60
hexagon: switch to NO_BOOTMEM
...
Patch series "switch several architectures NO_BOOTMEM".
These patches perform conversion to NO_BOOTMEM of hexagon, nios2, uml and
unicore32.
This patch (of 7):
Add registration of the system memory with memblock, eliminate bootmem
initialization and convert early memory reservations from bootmem to
memblock.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected] >
Acked-by: Richard Kuo <[email protected] >
Cc: Guan Xuetao <[email protected] >
Cc: Ley Foon Tan <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: Rob Herring <[email protected] >
Cc: Michal Hocko <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2018-10-26 16:25:20 -07:00
Anshuman Khandual
608dbdfb1f
hexagon: drop the unused variable zero_page_mask
...
Hexagon arch does not seem to have subscribed to _HAVE_COLOR_ZERO_PAGE
framework. Hence zero_page_mask variable is not needed.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Anshuman Khandual <[email protected] >
Reviewed-by: Andrew Morton <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2018-06-15 07:55:25 +09:00
Fabian Frederick
bd721ea73e
treewide: replace obsolete _refok by __ref
...
There was only one use of __initdata_refok and __exit_refok
__init_refok was used 46 times against 82 for __ref.
Those definitions are obsolete since commit 312b1485fb ("Introduce new
section reference annotations tags: __ref, __refdata, __refconst")
This patch removes the following compatibility definitions and replaces
them treewide.
/* compatibility defines */
#define __init_refok __ref
#define __initdata_refok __refdata
#define __exit_refok __ref
I can also provide separate patches if necessary.
(One patch per tree and check in 1 month or 2 to remove old definitions)
[[email protected] : coding-style fixes]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Fabian Frederick <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Sam Ravnborg <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2016-08-02 17:31:41 -04:00
Jiang Liu
5dc355c146
mm/hexagon: prepare for removing num_physpages and simplify mem_init()
...
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu <[email protected] >
Cc: Richard Kuo <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2013-07-03 16:07:36 -07:00
Jiang Liu
0c98853473
mm: concentrate modification of totalram_pages into the mm core
...
Concentrate code to modify totalram_pages into the mm core, so the arch
memory initialized code doesn't need to take care of it. With these
changes applied, only following functions from mm core modify global
variable totalram_pages: free_bootmem_late(), free_all_bootmem(),
free_all_bootmem_node(), adjust_managed_page_count().
With this patch applied, it will be much more easier for us to keep
totalram_pages and zone->managed_pages in consistence.
Signed-off-by: Jiang Liu <[email protected] >
Acked-by: David Howells <[email protected] >
Cc: "H. Peter Anvin" <[email protected] >
Cc: "Michael S. Tsirkin" <[email protected] >
Cc: <[email protected] >
Cc: Arnd Bergmann <[email protected] >
Cc: Catalin Marinas <[email protected] >
Cc: Chris Metcalf <[email protected] >
Cc: Geert Uytterhoeven <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jeremy Fitzhardinge <[email protected] >
Cc: Jianguo Wu <[email protected] >
Cc: Joonsoo Kim <[email protected] >
Cc: Kamezawa Hiroyuki <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Marek Szyprowski <[email protected] >
Cc: Mel Gorman <[email protected] >
Cc: Michel Lespinasse <[email protected] >
Cc: Minchan Kim <[email protected] >
Cc: Rik van Riel <[email protected] >
Cc: Rusty Russell <[email protected] >
Cc: Tang Chen <[email protected] >
Cc: Tejun Heo <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Wen Congyang <[email protected] >
Cc: Will Deacon <[email protected] >
Cc: Yasuaki Ishimatsu <[email protected] >
Cc: Yinghai Lu <[email protected] >
Cc: Russell King <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2013-07-03 16:07:33 -07:00
Richard Kuo
7c6a5df44f
Hexagon: update copyright dates
...
Signed-off-by: Richard Kuo <[email protected] >
2013-04-30 19:40:27 -05:00
Richard Kuo
8f5a0b9dff
Hexagon: add support for ARCH_PFN_OFFSET
...
Add support for loading the kernel at a physical offset. The
offset should still be 4M aligned.
Signed-off-by: Richard Kuo <[email protected] >
2013-04-30 19:40:22 -05:00
Richard Kuo
e1858b2a21
Hexagon: Copyright marking changes
...
Code Aurora Forum (CAF) is becoming a part of Linux Foundation Labs.
Signed-off-by: Richard Kuo <[email protected] >
2012-10-18 17:07:21 -05:00
Richard Kuo
499236d9db
Hexagon: Add page-fault support.
...
Signed-off-by: Richard Kuo <[email protected] >
Signed-off-by: Linas Vepstas <[email protected] >
Acked-by: Arnd Bergmann <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2011-11-01 07:34:20 -07:00