The original goal of this patchset is to fix the bug reported by
https://bugzilla.kernel.org/show_bug.cgi?id=53501
Now it has also been expanded to reduce common code used by memory
initializion.
This is the last part, previous three patch sets could be accessed at:
http://marc.info/?l=linux-mm&m=
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
Use _text to mark the start of the kernel image including the head text,
and _stext to mark the start of the .text section.
This patch also fixes possible bugs due to current addres
Generate mandatory global variables _sdata in file vmlinux.lds.
Signed-off-by: Jiang Liu
Cc: Chen Liqin
Cc: Lennox Wu
Cc: linux-kernel@vger.kernel.org
---
arch/score/kernel/vmlinux.lds.S |1 +
1 file changed, 1 insertion(+)
diff --git a/arch/score/kernel/vmlinux.lds.S b/arch/score/kernel/
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __init_begin and _
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
1) Use _text to mark the start of the kernel image including the head
text, and _stext to mark the start of the .text section.
2) Export mandatory global variables __bss_stop.
3) Adj
Introduce helper function mem_init_print_info() to simplify mem_init()
across different architectures, which also unifies the format and
information printed.
Function mem_init_print_info() calculates memory statistics information
without walking each page, so it should be a little faster on some
a
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Henderson
Cc: Ivan Kokshaysky
Cc: Matt Turner
Cc: David Howells
Cc: linux-al...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/alpha/mm/init.c | 32 ++--
The global variable num_physpages is scheduled to be removed, so use
totalram_pages instead of num_physpages at runtime.
Signed-off-by: Jiang Liu
Cc: Miklos Szeredi
Cc: "David S. Miller"
Cc: Alexey Kuznetsov
Cc: James Morris
Cc: Hideaki YOSHIFUJI
Cc: Patrick McHardy
Cc: fuse-de...@lists.sou
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Henderson
Cc: Ivan Kokshaysky
Cc: Matt Turner
Cc: David Howells
Cc: linux-al...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/alpha/mm/init.c | 32 ++--
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/mm/init.c | 47 ++-
1
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm64/mm/init.c | 48 +++-
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/mm/init.c | 47 ++-
1
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Russell King
Cc: Catalin Marinas
Cc: Will Deacon
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm64/mm/init.c | 48 +++-
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Haavard Skinnemoen
Cc: Hans-Christian Egtvedt
Cc: linux-kernel@vger.kernel.org (open list)
---
arch/avr32/mm/init.c | 29 -
1 file changed, 4 insertions(+), 25 deletions(-)
d
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Haavard Skinnemoen
Cc: Hans-Christian Egtvedt
Cc: linux-kernel@vger.kernel.org (open list)
---
arch/avr32/mm/init.c | 29 -
1 file changed, 4 insertions(+), 25 deletions(-)
d
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mike Frysinger
Cc: Bob Liu
Cc: uclinux-dist-de...@blackfin.uclinux.org
Cc: linux-kernel@vger.kernel.org
---
arch/blackfin/mm/init.c | 38 ++
1 file changed, 6 insertio
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mike Frysinger
Cc: Bob Liu
Cc: uclinux-dist-de...@blackfin.uclinux.org
Cc: linux-kernel@vger.kernel.org
---
arch/blackfin/mm/init.c | 38 ++
1 file changed, 6 insertio
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mark Salter
Cc: Aurelien Jacquiot
Cc: linux-c6x-...@linux-c6x.org
Cc: linux-kernel@vger.kernel.org
---
arch/c6x/mm/init.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/a
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mark Salter
Cc: Aurelien Jacquiot
Cc: linux-c6x-...@linux-c6x.org
Cc: linux-kernel@vger.kernel.org
---
arch/c6x/mm/init.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/a
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mikael Starvik
Cc: Jesper Nilsson
Cc: linux-cris-ker...@axis.com
Cc: linux-kernel@vger.kernel.org
---
arch/cris/mm/init.c | 33 ++---
1 file changed, 2 insertions(+), 31 delet
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Mikael Starvik
Cc: Jesper Nilsson
Cc: linux-cris-ker...@axis.com
Cc: linux-kernel@vger.kernel.org
---
arch/cris/mm/init.c | 33 ++---
1 file changed, 2 insertions(+), 31 delet
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Andi Kleen
Cc: Geert Uytterhoeven
Cc: Greg Kroah-Hartman
Cc: linux-kernel@vger.kernel.org
---
arch/frv/kernel/setup.c | 14 +++---
arch/frv/mm/init.c | 49 +
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Andi Kleen
Cc: Geert Uytterhoeven
Cc: Greg Kroah-Hartman
Cc: linux-kernel@vger.kernel.org
---
arch/frv/kernel/setup.c | 14 +++---
arch/frv/mm/init.c | 49 +
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Yoshinori Sato
Cc: Geert Uytterhoeven
Cc: linux-kernel@vger.kernel.org
---
arch/h8300/mm/init.c | 34 --
1 file changed, 8 insertions(+), 26 deletions(-)
diff --git a/arc
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Yoshinori Sato
Cc: Geert Uytterhoeven
Cc: linux-kernel@vger.kernel.org
---
arch/h8300/mm/init.c | 34 --
1 file changed, 8 insertions(+), 26 deletions(-)
diff --git a/arc
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Kuo
Cc: linux-hexa...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/hexagon/mm/init.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/hexagon/mm/init.c b/ar
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Tony Luck
Cc: Fenghua Yu
Cc: Andrew Morton
Cc: Zhang Yanfei
Cc: linux-i...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/ia64/mm/contig.c| 11 ---
arch/ia64/mm/discontig.c |
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Tony Luck
Cc: Fenghua Yu
Cc: Andrew Morton
Cc: Zhang Yanfei
Cc: linux-i...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/ia64/mm/contig.c| 11 ---
arch/ia64/mm/discontig.c |
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Hirokazu Takata
Cc: linux-m...@ml.linux-m32r.org
Cc: linux-m32r...@ml.linux-m32r.org
Cc: linux-kernel@vger.kernel.org
---
arch/m32r/mm/discontig.c |6 +-
arch/m32r/mm/init.c | 49 +---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Hirokazu Takata
Cc: linux-m...@ml.linux-m32r.org
Cc: linux-m32r...@ml.linux-m32r.org
Cc: linux-kernel@vger.kernel.org
---
arch/m32r/mm/discontig.c |6 +-
arch/m32r/mm/init.c | 49 +---
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Geert Uytterhoeven
Cc: Greg Ungerer
Cc: linux-m...@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org
---
arch/m68k/mm/init.c | 31 ++-
1 file changed, 2 insertions(+), 29
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Michal Simek
Cc: microblaze-ucli...@itee.uq.edu.au
Cc: linux-kernel@vger.kernel.org
---
arch/microblaze/mm/init.c | 51 ++---
1 file changed, 6 insertions(+), 45 de
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Michal Simek
Cc: microblaze-ucli...@itee.uq.edu.au
Cc: linux-kernel@vger.kernel.org
---
arch/microblaze/mm/init.c | 51 ++---
1 file changed, 6 insertions(+), 45 de
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Ralf Baechle
Cc: David Daney
Cc: Arnd Bergmann
Cc: Jiri Kosina
Cc: John Crispin
Cc: Greg Kroah-Hartman
Cc: Minchan Kim
Cc: linux-m...@linux-mips.org
Cc: linux-kernel@vger.kernel.org
---
arch/mips/mm/i
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Ralf Baechle
Cc: David Daney
Cc: Arnd Bergmann
Cc: Jiri Kosina
Cc: John Crispin
Cc: Greg Kroah-Hartman
Cc: Minchan Kim
Cc: linux-m...@linux-mips.org
Cc: linux-kernel@vger.kernel.org
---
arch/mips/mm/i
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Koichi Yasutake
Cc: linux-am33-l...@redhat.com
Cc: linux-kernel@vger.kernel.org
---
arch/mn10300/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24 deletions
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: David Howells
Cc: Koichi Yasutake
Cc: linux-am33-l...@redhat.com
Cc: linux-kernel@vger.kernel.org
---
arch/mn10300/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24 deletions
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jonas Bonn
Cc: David Howells
Cc: Arnd Bergmann
Cc: li...@lists.openrisc.net
Cc: linux-kernel@vger.kernel.org
---
arch/openrisc/mm/init.c | 44
1 file changed
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jonas Bonn
Cc: David Howells
Cc: Arnd Bergmann
Cc: li...@lists.openrisc.net
Cc: linux-kernel@vger.kernel.org
---
arch/openrisc/mm/init.c | 44
1 file changed
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "James E.J. Bottomley"
Cc: Helge Deller
Cc: Thomas Gleixner
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-par...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/parisc/mm/init.c | 46 +++
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "James E.J. Bottomley"
Cc: Helge Deller
Cc: Thomas Gleixner
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-par...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/parisc/mm/init.c | 46 +++
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: linuxppc-...@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
---
arch/powerpc/mm/mem.c | 56 +++--
1 file chang
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: linuxppc-...@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
---
arch/powerpc/mm/mem.c | 56 +++--
1 file chang
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Martin Schwidefsky
Cc: Heiko Carstens
Cc: linux...@de.ibm.com
Cc: linux-s...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/s390/mm/init.c | 17 ++---
1 file changed, 2 insertions(
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Martin Schwidefsky
Cc: Heiko Carstens
Cc: linux...@de.ibm.com
Cc: linux-s...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/s390/mm/init.c | 17 ++---
1 file changed, 2 insertions(
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chen Liqin
Cc: Lennox Wu
Cc: linux-kernel@vger.kernel.org
---
arch/score/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24 deletions(-)
diff --git a/arch/score/mm/init.c b/a
>> Thanks for identifying and fixing this.
>>
>> Li is right. The cache name will live long, but this is because the
>> slab/slub caches will strdup it internally. So the actual memcg
>> allocation is short lived.
>
> OK, I have totally missed that. Sorry about the confusion. Then all the
> churn
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Paul Mundt
Cc: Wen Congyang
Cc: Tang Chen
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sh/mm/init.c | 25 -
1 file changed, 4 insertions(+), 21 deletion
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Paul Mundt
Cc: Wen Congyang
Cc: Tang Chen
Cc: linux...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sh/mm/init.c | 25 -
1 file changed, 4 insertions(+), 21 deletion
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "David S. Miller"
Cc: Sam Ravnborg
Cc: Yasuaki Ishimatsu
Cc: Tang Chen
Cc: sparcli...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sparc/kernel/leon_smp.c |3 ---
arch/sparc/mm/init_32.c
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: "David S. Miller"
Cc: Sam Ravnborg
Cc: Yasuaki Ishimatsu
Cc: Tang Chen
Cc: sparcli...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/sparc/kernel/leon_smp.c |3 ---
arch/sparc/mm/init_32.c
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Metcalf
Cc: Bjorn Helgaas
Cc: "David S. Miller"
Cc: Wen Congyang
Cc: linux-kernel@vger.kernel.org
---
arch/tile/kernel/setup.c | 16
arch/tile/mm/init.c | 15 +
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Metcalf
Cc: Bjorn Helgaas
Cc: "David S. Miller"
Cc: Wen Congyang
Cc: linux-kernel@vger.kernel.org
---
arch/tile/kernel/setup.c | 16
arch/tile/mm/init.c | 15 +
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jeff Dike
Cc: Richard Weinberger
Cc: user-mode-linux-de...@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
---
arch/um/kernel/mem.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jeff Dike
Cc: Richard Weinberger
Cc: user-mode-linux-de...@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
---
arch/um/kernel/mem.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Guan Xuetao
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/mm/init.c | 49 ++
1 file changed, 2 insertions(+), 47 del
>> I read the code as lockdep_assert(memcg_cache_mutex), and then later on
>> mutex_lock(&memcg_mutex). But reading again, that was a just an
>> rcu_read_lock(). Good thing it is Friday
>>
>> You guys can add my Acked-by, and thanks again
>
> Li, are you ok to take the page via your tree?
>
I do
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Guan Xuetao
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/mm/init.c | 49 ++
1 file changed, 2 insertions(+), 47 del
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
Cc: Andreas Herrmann
Cc: Tang Chen
Cc: Wen Congyang
Cc: Jianguo Wu
Cc: linux-kernel@vger.kernel.org
---
arch/x86/kernel/cpu/amd
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
Cc: Andreas Herrmann
Cc: Tang Chen
Cc: Wen Congyang
Cc: Jianguo Wu
Cc: linux-kernel@vger.kernel.org
---
arch/x86/kernel/cpu/amd
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Zankel
Cc: Max Filippov
Cc: Geert Uytterhoeven
Cc: linux-xte...@linux-xtensa.org
Cc: linux-kernel@vger.kernel.org
---
arch/xtensa/mm/init.c | 27 ++-
1 file changed, 2 inse
The global variable num_physpages is scheduled to be removed, so use
totalram_pages instead of num_physpages at runtime.
Signed-off-by: Jiang Liu
Cc: Miklos Szeredi
Cc: "David S. Miller"
Cc: Alexey Kuznetsov
Cc: James Morris
Cc: Hideaki YOSHIFUJI
Cc: Patrick McHardy
Cc: fuse-de...@lists.sou
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Zankel
Cc: Max Filippov
Cc: Geert Uytterhoeven
Cc: linux-xte...@linux-xtensa.org
Cc: linux-kernel@vger.kernel.org
---
arch/xtensa/mm/init.c | 27 ++-
1 file changed, 2 inse
Prepare for removing num_physpages.
Signed-off-by: Jiang Liu
Cc: Wen Congyang
Cc: Tang Chen
Cc: Yasuaki Ishimatsu
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
mm/memory_hotplug.c |4
1 file changed, 4 deletions(-)
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
Now all references to num_physpages have been removed, so kill it.
Signed-off-by: Jiang Liu
Cc: Mel Gorman
Cc: Michel Lespinasse
Cc: Rik van Riel
Cc: Jiang Liu
Cc: Hugh Dickins
Cc: David Rientjes
Cc: Al Viro
Cc: Konstantin Khlebnikov
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chen Liqin
Cc: Lennox Wu
Cc: linux-kernel@vger.kernel.org
---
arch/score/mm/init.c | 26 ++
1 file changed, 2 insertions(+), 24 deletions(-)
diff --git a/arch/score/mm/init.c b/a
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Geert Uytterhoeven
Cc: Greg Ungerer
Cc: linux-m...@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org
---
arch/m68k/mm/init.c | 31 ++-
1 file changed, 2 insertions(+), 29
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Richard Kuo
Cc: linux-hexa...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
arch/hexagon/mm/init.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/hexagon/mm/init.c b/ar
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Jeff Dike
Cc: Richard Weinberger
Cc: user-mode-linux-de...@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
---
arch/um/kernel/mem.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Guan Xuetao
Cc: Michal Hocko
Cc: David Rientjes
Cc: linux-kernel@vger.kernel.org
---
arch/unicore32/mm/init.c | 49 ++
1 file changed, 2 insertions(+), 47 del
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: x...@kernel.org
Cc: Andreas Herrmann
Cc: Tang Chen
Cc: Wen Congyang
Cc: Jianguo Wu
Cc: linux-kernel@vger.kernel.org
---
arch/x86/kernel/cpu/amd
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu
Cc: Chris Zankel
Cc: Max Filippov
Cc: Geert Uytterhoeven
Cc: linux-xte...@linux-xtensa.org
Cc: linux-kernel@vger.kernel.org
---
arch/xtensa/mm/init.c | 27 ++-
1 file changed, 2 inse
Prepare for removing num_physpages.
Signed-off-by: Jiang Liu
Cc: Wen Congyang
Cc: Tang Chen
Cc: Yasuaki Ishimatsu
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
---
mm/memory_hotplug.c |4
1 file changed, 4 deletions(-)
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
Now all references to num_physpages have been removed, so kill it.
Signed-off-by: Jiang Liu
Cc: Mel Gorman
Cc: Michel Lespinasse
Cc: Rik van Riel
Cc: Jiang Liu
Cc: Hugh Dickins
Cc: David Rientjes
Cc: Al Viro
Cc: Konstantin Khlebnikov
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org
* Russ Anderson wrote:
> --- linux.orig/mm/page_alloc.c2013-03-19 16:09:03.736450861 -0500
> +++ linux/mm/page_alloc.c 2013-03-22 17:07:43.895405617 -0500
> @@ -4161,10 +4161,23 @@ int __meminit __early_pfn_to_nid(unsigne
> {
> unsigned long start_pfn, end_pfn;
> int i,
This patch documents global variables exported from vmlinux.lds.
1) Add comments about usage guidelines for global variables exported
from vmlinux.lds.S.
2) Remove unused __initdata_begin[] and __initdata_end[].
Signed-off-by: Jiang Liu
Cc: Arnd Bergmann
Cc: linux-a...@vger.kernel.org
Cc: lin
Normalize global variables exported by vmlinux.lds to conform usage
guidelines from include/asm-generic/sections.h.
Use _text to mark the start of the kernel image including the head text,
and _stext to mark the start of the .text section.
Signed-off-by: Jiang Liu
Cc: Haavard Skinnemoen
Cc: Han
Generate mandatory global variables __bss_start/__bss_stop in
file vmlinux.lds.
Also remove one unused declaration of _text.
Signed-off-by: Jiang Liu
Cc: Yoshinori Sato
Cc: Jiang Liu
Cc: linux-kernel@vger.kernel.org
---
arch/h8300/boot/compressed/misc.c |1 -
arch/h8300/kernel/vmlinux.lds
> -Original Message-
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On
> Behalf Of Kumar Amit Mehta
> Sent: Sunday, March 24, 2013 8:10 AM
> To: Eilon Greenstein
> Cc: da...@davemloft.net; dan.carpen...@oracle.com; net...@vger.kernel.org;
> linux-kernel@vger.ke
Tested on Dell 7720. Works fine.
Signed-off-by: Valyushkov Ivan
---
drivers/input/mouse/alps.c | 464 +---
drivers/input/mouse/alps.h |2 +
2 files changed, 443 insertions(+), 23 deletions(-)
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mo
On Sun, 2013-03-24 at 15:24 +0800, Jiang Liu wrote:
> The original goal of this patchset is to fix the bug reported by
> https://bugzilla.kernel.org/show_bug.cgi?id=53501
> Now it has also been expanded to reduce common code used by memory
> initializion.
>
> This is the last part, previous three
* Frederic Weisbecker wrote:
> Hi Ingo,
>
> This settles the initial ground to start a special full dynticks tree in -tip
> that we can iterate incrementally to accelerate the development.
> It is based on tip:sched/core.
>
> I tried to rearrange a bit the naming. We are probably not yet done
On (03/23/13 17:34), Eric Wong wrote:
> Sergey Senozhatsky wrote:
> > [3.163894] ===
> > [3.163895] [ INFO: suspicious RCU usage. ]
> > [3.163897] 3.9.0-rc3-next-20130322-dbg-dirty #1 Not tainted
> > [3.163898] ---
> > [3.
Hi Linus,
here are some assorted pinctrl fixes for the v3.9 rc series.
Just bug fixes, basically.
Please pull them in, detailed info in the tag.
Yours,
Linus Walleij
The following changes since commit 6dbe51c251a327e012439c4772097a13df43c5b8:
Linux 3.9-rc1 (2013-03-03 15:11:05 -0800)
are a
On Fri, Mar 22, 2013 at 10:43:44AM -0400, Ben Collins wrote:
> On Mar 22, 2013, at 10:33 AM, David Miller wrote:
>
> > From: Fleming Andy-AFLEMING
> > Date: Fri, 22 Mar 2013 14:31:50 +
> >
> >> It would appear one of our customers is attempting to upstream our
> >> code for us. We are aware
On Fri, Mar 22, 2013 at 02:55:14PM +, Ian Lartey wrote:
> From: Graeme Gregory
>
> Add support for the Palmas watchdog timer which has a timeout configurable
> from 1s to 128s.
>
> Signed-off-by: Graeme Gregory
> Signed-off-by: Ian Lartey
> ---
> drivers/watchdog/palmas_wdt.c | 169
> ++
On Fri, Mar 22, 2013 at 02:55:15PM +, Ian Lartey wrote:
> Add the Kconfig and Makefile for the Palmas watchdog driver
>
> Signed-off-by: Ian Lartey
> Signed-off-by: Graeme Gregory
> ---
I think this patch should be merged with the previous one.
Guenter
--
To unsubscribe from this list: sen
On Sat, Mar 23, 2013 at 10:49:14AM -0700, Guenter Roeck wrote:
> MFD core driver for various variants of Winbond/Nuvoton SuperIO chips.
>
> Signed-off-by: Guenter Roeck
Sorry for sending this twice. I seem to be having trouble with outgoing e-mail
being delayed for hours. The first patch didn't
On Fri, Mar 22, 2013 at 06:08:40PM -0400, Theodore Ts'o wrote:
> On Fri, Mar 22, 2013 at 11:39:20AM -0400, Ben Collins wrote:
> >
> > If your company had hardware going to production, you'd want it supported
> > in mainline too, I suspect.
>
> And if companies told their hardware partners that t
When a fs is frozen, a process can hang because we wait in
uniterruptible state. We give the user the possibility to kill the process.
Not-signed-off-by: Marco Stornelli
---
--- fs/super.c.orig 2013-03-24 09:56:33.0 +0100
+++ fs/super.c 2013-03-24 09:58:41.0 +0100
@@ -1198,7
Hi!
Still the same with 3.8.4 ... anybody?
Best regards,
Markus
Markus schrieb am 12.03.2013:
> Hello!
>
> I created a hybrid raid1 with one ssd and one hdd. Used writemostly and
> writebehind and put ext4 with discard enabled on it.
> This setup worked quite well for the last months (last ker
Hi!
> > > >> pavel@amd:~$ cat /proc/acpi/battery/BAT0/info
> > > >> present: yes
> > > >> design capacity: 0 mWh
> > > >> last full capacity: 0 mWh
> > > >> battery technology: rechargeable
> > > >> design voltage: 14400 mV
> > > >>
> > > >> This worked
On Sunday 24 March 2013, Jiang Liu wrote:
> This patch documents global variables exported from vmlinux.lds.
> 1) Add comments about usage guidelines for global variables exported
>from vmlinux.lds.S.
> 2) Remove unused __initdata_begin[] and __initdata_end[].
>
> Signed-off-by: Jiang Liu
> C
On Thu, Mar 21, 2013 at 05:02:15PM -0700, Kevin Hilman wrote:
> Gleb Natapov writes:
>
> > On Thu, Mar 21, 2013 at 02:33:13PM -0500, Scott Wood wrote:
> >> On 03/21/2013 02:16:00 PM, Gleb Natapov wrote:
> >> >On Thu, Mar 21, 2013 at 01:42:34PM -0500, Scott Wood wrote:
> >> >> On 03/21/2013 09:27:
On 03/24/13 06:12, Fredrik Tolf wrote:
While this flush is running, I find that many a process goes into disk
sleep waiting for the flush to complete. This includes the process
manipulating the mmapped file whenever it tries to redirty a page
currently waiting to be flushed, but also, for instanc
Hi!
On Mon 2012-12-03 23:58:48, Alan Cox wrote:
> On 3 Dec 2012 16:19:11 -0500
> "George Spelvin" wrote:
>
> > (Not sure who owns this; Cc: to the last few people to touch
> > drivers/tty/vt/keyboard.c.)
>
> linux-input is probably the best place to discuss this
Added few more ccs. Yes, I see t
On Sun 2013-03-24 11:30:18, Pavel Machek wrote:
> Hi!
> On Mon 2012-12-03 23:58:48, Alan Cox wrote:
> > On 3 Dec 2012 16:19:11 -0500
> > "George Spelvin" wrote:
> >
> > > (Not sure who owns this; Cc: to the last few people to touch
> > > drivers/tty/vt/keyboard.c.)
> >
> > linux-input is probabl
Observed it today at a 32 bit Gentoo Linux w/ kernel 3.8.4 :
2013-03-24T11:39:48.749+01:00 n22 kernel: [ cut here ]
2013-03-24T11:39:48.749+01:00 n22 kernel: kernel BUG at fs/locks.c:2093!
2013-03-24T11:39:48.749+01:00 n22 kernel: invalid opcode: [#1] SMP
2013-03-24T1
Caj Larsson writes:
> Hello,
>
> We are setting up a container using a CLONE_NEWNS linux namespace.
> Previously we used the 3.4.4 kernel, which worked fine. After I
> upgraded i also experienced races in netlink, which has been resolved
> by placing a monitor around the namespace setup. When we
Andrew, Thierry,
On Fri, 22 Mar 2013 09:30:27 +, Andrew Murray wrote:
> I think this could work well. In the future if the use of an independent MSI
> controller is required, then new DT bindings for host-bridges could use
> phandles to reference independent MSI controllers as their providers
1 - 100 of 400 matches
Mail list logo