[Top] [All Lists]

Re: [PATCH] Introduce mips_late_time_init

To: Ralf Baechle <>
Subject: Re: [PATCH] Introduce mips_late_time_init
From: Thomas Gleixner <>
Date: Wed, 8 Dec 2010 22:21:04 +0100 (CET)
Cc: David Daney <>, Anoop P A <>,, LKML <>,, Linus Torvalds <>, Andrew Morton <>
In-reply-to: <>
Original-recipient: rfc822;
References: <1291623812.31822.6.camel@paanoop1-desktop> <> <>
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
On Wed, 8 Dec 2010, Ralf Baechle wrote:
> Running everything from late_time_init() instead allows the use of kmalloc.
> X86 has the same issue with requiring kmalloc in time_init which is why
> they had moved everything to late_time_init.

It's more ioremap, but yeah.
> So the real question is, why can't we just move the call of time_init()
> in setup_kernel() to where late_time_init() is getting called from for
> all architectures, does anything rely on it getting called early?

That's a good question and I asked it myself already. I can't see a
real reason why something would need it early. Definitely worth to



<Prev in Thread] Current Thread [Next in Thread>