linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] MIPS vdso fixes.
@ 2010-06-16 22:00 David Daney
  2010-06-16 22:00 ` [PATCH 1/2] MIPS: Get rid of useless 'init_vdso successfully' message David Daney
  2010-06-16 22:00 ` [PATCH 2/2] MIPS: Make init_vdso a subsys_initcall David Daney
  0 siblings, 2 replies; 5+ messages in thread
From: David Daney @ 2010-06-16 22:00 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

Here are a couple of vdso fixes.  They aren't major problems, but good
to have none the less, I think.

David Daney (2):
  MIPS: Get rid of useless 'init_vdso successfully' message.
  MIPS: Make init_vdso a subsys_initcall.

 arch/mips/kernel/vdso.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] MIPS: Get rid of useless 'init_vdso successfully' message.
  2010-06-16 22:00 [PATCH 0/2] MIPS vdso fixes David Daney
@ 2010-06-16 22:00 ` David Daney
  2010-07-06 14:17   ` Ralf Baechle
  2010-06-16 22:00 ` [PATCH 2/2] MIPS: Make init_vdso a subsys_initcall David Daney
  1 sibling, 1 reply; 5+ messages in thread
From: David Daney @ 2010-06-16 22:00 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

In addition to being useless, it was mis-spelled.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/kernel/vdso.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/mips/kernel/vdso.c b/arch/mips/kernel/vdso.c
index 0847279..891c117 100644
--- a/arch/mips/kernel/vdso.c
+++ b/arch/mips/kernel/vdso.c
@@ -61,8 +61,6 @@ static int __init init_vdso(void)
 
 	vunmap(vdso);
 
-	pr_notice("init_vdso successfull\n");
-
 	return 0;
 }
 device_initcall(init_vdso);
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] MIPS: Make init_vdso a subsys_initcall.
  2010-06-16 22:00 [PATCH 0/2] MIPS vdso fixes David Daney
  2010-06-16 22:00 ` [PATCH 1/2] MIPS: Get rid of useless 'init_vdso successfully' message David Daney
@ 2010-06-16 22:00 ` David Daney
  2010-07-06 14:26   ` Ralf Baechle
  1 sibling, 1 reply; 5+ messages in thread
From: David Daney @ 2010-06-16 22:00 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney, Jiri Slaby

Quoting from Jiri Slaby's patch of a similar nature for x86:

    When initrd is in use and a driver does request_module() in its
    module_init (i.e. __initcall or device_initcall), a modprobe
    process is created with VDSO mapping. But VDSO is inited even in
    __initcall, i.e. on the same level (at the same time), so it may
    not be inited yet (link order matters).

Move init_vdso up to subsys_initcall to avoid the issue.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: Jiri Slaby <jslaby@suse.cz>
---
 arch/mips/kernel/vdso.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/vdso.c b/arch/mips/kernel/vdso.c
index 891c117..7baa0b5 100644
--- a/arch/mips/kernel/vdso.c
+++ b/arch/mips/kernel/vdso.c
@@ -63,7 +63,7 @@ static int __init init_vdso(void)
 
 	return 0;
 }
-device_initcall(init_vdso);
+subsys_initcall(init_vdso);
 
 static unsigned long vdso_addr(unsigned long start)
 {
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] MIPS: Get rid of useless 'init_vdso successfully' message.
  2010-06-16 22:00 ` [PATCH 1/2] MIPS: Get rid of useless 'init_vdso successfully' message David Daney
@ 2010-07-06 14:17   ` Ralf Baechle
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2010-07-06 14:17 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips

Applied.  Thanks!

  Ralf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] MIPS: Make init_vdso a subsys_initcall.
  2010-06-16 22:00 ` [PATCH 2/2] MIPS: Make init_vdso a subsys_initcall David Daney
@ 2010-07-06 14:26   ` Ralf Baechle
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2010-07-06 14:26 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips, Jiri Slaby

Thanks, applied.

  Ralf

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-06 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 22:00 [PATCH 0/2] MIPS vdso fixes David Daney
2010-06-16 22:00 ` [PATCH 1/2] MIPS: Get rid of useless 'init_vdso successfully' message David Daney
2010-07-06 14:17   ` Ralf Baechle
2010-06-16 22:00 ` [PATCH 2/2] MIPS: Make init_vdso a subsys_initcall David Daney
2010-07-06 14:26   ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).