mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
To: Tim Bird <tim.bird@am.sony.com>,
	Adam Kropelin <akropel1@rochester.rr.com>
Cc: Andrew Morton <akpm@osdl.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	karim@opersys.com, linux-kernel@vger.kernel.org,
	celinux-dev@tree.celinuxforum.org, tpoynor@mvista.com
Subject: Re: [PATCH] preset loops_per_jiffy for faster booting
Date: Tue, 13 Jul 2004 21:24:47 +0200	[thread overview]
Message-ID: <200407132124.47773.bzolnier@elka.pw.edu.pl> (raw)
In-Reply-To: <40F313A6.909@am.sony.com>


Hi,

On Tuesday 13 of July 2004 00:41, Tim Bird wrote:
> Adam Kropelin wrote:
> > On Mon, Jul 12, 2004 at 11:52:44AM -0700, Tim Bird wrote:
> >>Adam Kropelin wrote:
> >>>Here's a patch. It places the relevant information on the same line as
> >>>bogomips and does so without encouraging anyone to fiddle with
> >>>loops_per_jiffy and screw up their kernel.
> >>
> >>The patch is missing the Kconfig piece.  Is the wording the
> >>same as from your earlier patch?
> >
> > Andrew requested that the config option be removed, so there are no
> > longer any changes to Kconfig.
>
> Oh - I missed the change where preset_lpj is no longer initialized
> from CONFIG_PRESET_LPJ.  I see it now.  I saw the comment from
> Andrew, but thought he was talking about the first version of the
> patch that had ifdefs.
>
> Here's what Andrew Morton said:
> > a) I don't see much point in making it configurable.  Just add the boot
> >    option and be done with it.  The few hundred bytes of extra code will
> > be dropped from core anyway.
> >
> >    The main reason for this is that most people won't turn on the config
> >    option, so your new code could get accidentally broken quite easily.
> >    Plus it removes some ifdefs.
>
> I have one or two arguments in favor of keeping the config option.
> First, for embedded systems it is sometimes necessary to compile-in
> the value. Unfortunately, not all architectures allow the
> kernel command line to be compiled in. (It would be nice if they did,
> but that's something to fix separately.)

Many do (i.e. arm, h8300, mips, ppc, sh) and IMHO it is better
to fix it separately where needed.

> The first restructuring of the patch that you did, I think addresses
> the issues that Andrew raised.  There are now no ifdefs, and since the
> core code doesn't drop away (and indeed can be turned on at boot time
> if needed), I think the code is not susceptible to accidental breakage
> like the first version was.  I think Andrew is right that the preset
> code path won't get much testing outside of embedded circles, so it is
> important that it be as simple as possible.
>
> The only *code* change from the configurable to the config-less version
> of the code is:
>
> +static unsigned long preset_lpj = CONFIG_PRESET_LPJ;
>    vs.
> +static unsigned long preset_lpj;

with the latter statement 'preset_lpj' ends up in BSS instead of data section
;-)

> Secondly, I was hoping to get the FASTBOOT menu in the kernel, because
> CELF has a few more patches to submit that have the same theme as this
> one.  (I realize this is not justification for making this option
> configurable, per se.  If we need to push for this on a subsequent patch,
> that's OK.)

Separate patch please if/when needed.


  reply	other threads:[~2004-07-13 19:18 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-09 19:25 Tim Bird
2004-07-09 22:24 ` Adam Kropelin
2004-07-09 23:35 ` Adam Kropelin
2004-07-10  0:20   ` Tim Bird
2004-07-10  2:01     ` Adam Kropelin
2004-07-10  2:01       ` Todd Poynor
2004-07-10 15:42         ` Adam Kropelin
2004-07-10 14:41       ` [Celinux-dev] " Geert Uytterhoeven
2004-07-10 15:22         ` Adam Kropelin
2004-07-10 15:54     ` Adam Kropelin
2004-07-10 18:28       ` Adam Kropelin
2004-07-10 18:19         ` Dmitry Torokhov
2004-07-10 20:14           ` Adam Kropelin
2004-07-11  1:25             ` Andrew Morton
2004-07-11  3:44               ` Adam Kropelin
2004-07-11  4:38                 ` Andrew Morton
2004-07-12 17:31                   ` Tim Bird
2004-07-11  4:51                 ` Dmitry Torokhov
2004-07-11  4:58                   ` Karim Yaghmour
2004-07-11  5:19                     ` Dmitry Torokhov
2004-07-11  5:27                       ` Andrew Morton
2004-07-11  7:46                         ` Geert Uytterhoeven
2004-07-11  7:51                           ` Andrew Morton
2004-07-11 13:41                             ` Adam Kropelin
2004-07-12 18:52                               ` Tim Bird
2004-07-12 19:32                                 ` Adam Kropelin
2004-07-12 22:41                                   ` Tim Bird
2004-07-13 19:24                                     ` Bartlomiej Zolnierkiewicz [this message]
2004-07-12 17:50               ` Tim Bird

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=200407132124.47773.bzolnier@elka.pw.edu.pl \
    --to=b.zolnierkiewicz@elka.pw.edu.pl \
    --cc=akpm@osdl.org \
    --cc=akropel1@rochester.rr.com \
    --cc=celinux-dev@tree.celinuxforum.org \
    --cc=geert@linux-m68k.org \
    --cc=karim@opersys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tim.bird@am.sony.com \
    --cc=tpoynor@mvista.com \
    /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

all inboxes | Powered by JetHome®