]> git.karo-electronics.de Git - mv-sheeva.git/commit
MIPS: Make init_vdso a subsys_initcall.
authorDavid Daney <ddaney@caviumnetworks.com>
Wed, 16 Jun 2010 22:00:28 +0000 (15:00 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Jul 2010 18:08:16 +0000 (19:08 +0100)
commit1ed845375b1f2938acc4496a186e180892b00c71
treefc310af942e270725f59bfb3d6c07a574905d27f
parent57d15018aa48ecc5fafef3374dcebcf0bbbfa764
MIPS: Make init_vdso a subsys_initcall.

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>
To: linux-mips@linux-mips.org
Cc: David Daney <ddaney@caviumnetworks.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Patchwork: http://patchwork.linux-mips.org/patch/1386/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vdso.c