From: David Daney <ddaney.cavm@gmail.com>
To: Shane McDonald <mcdonald.shane@gmail.com>, ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH v2 5/5] MIPS: Move cache setup to setup_arch().
Date: Wed, 13 Jun 2012 09:29:50 -0700 [thread overview]
Message-ID: <4FD8BFFE.3040400@gmail.com> (raw)
In-Reply-To: <CACoURw6S+Z9urgYQzqkTZ0WR4kcaxMnSLm=D6m_6pWJnvDtUpA@mail.gmail.com>
On 06/13/2012 08:44 AM, Shane McDonald wrote:
> On Mon, Jun 11, 2012 at 12:32 PM, Shane McDonald
> <mcdonald.shane@gmail.com> wrote:
>> There is a line:
>>
>> __setup("cca=", cca_setup);
>>
>> that seems to be used to call cca_setup(). I don't know how
>> the __setup() works, so I'm a little lost on the solution myself.
>>
>> Note that, besides the cca_setup(), there is also a routine
>> setcoherentio() that is defined the same way as cca_setup().
>> I suspect that suffers from the same problem as cca_setup().
>
> I've been doing a little learning on how the __setup() macro works.
> A proposed solution I have is to change from using the __setup()
> macro to using early_param() to mark the call to cca_setup().
This is the exact change I was going to suggest.
> Functions marked with __setup() are executed late in the boot
> process, whereas those marked with early_param() occur
> very early in the process. I have tried this out,
> and it solves my problem, but I'm looking for feedback on
> whether this is the correct solution.
>
> Unless I get any different feedback, I'll send out a patch with
> my change later today.
Assuming that such a patch passes checkpatch.pl and is otherwise clean,
you could add:
Acked-by: David Daney <david.daney@cavium.com>
next prev parent reply other threads:[~2012-06-13 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 0:04 [PATCH v2 0/5] MIPS: Move cache setup earlier David Daney
2012-05-15 0:04 ` David Daney
2012-05-15 0:04 ` [PATCH v2 1/5] MIPS: Introduce board_cache_error_setup() hook David Daney
2012-05-15 0:04 ` [PATCH v2 2/5] MIPS: Make set_handler() __cpuinit David Daney
2012-05-15 11:10 ` Sergei Shtylyov
2012-05-15 0:04 ` [PATCH v2 3/5] MIPS: Octeon: Use board_cache_error_setup for cache error handler setup David Daney
2012-05-15 0:04 ` [PATCH v2 4/5] MIPS: Use board_cache_error_setup for r4k " David Daney
2012-05-15 0:04 ` [PATCH v2 5/5] MIPS: Move cache setup to setup_arch() David Daney
2012-06-11 4:16 ` Shane McDonald
2012-06-11 16:21 ` David Daney
2012-06-11 16:39 ` David Daney
2012-06-11 18:32 ` Shane McDonald
2012-06-13 15:44 ` Shane McDonald
2012-06-13 16:29 ` David Daney [this message]
2012-06-13 17:08 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD8BFFE.3040400@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=mcdonald.shane@gmail.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox