All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: grub_halt()
Date: Fri, 4 Dec 2009 22:02:27 +0100	[thread overview]
Message-ID: <20091204210227.GH1528@thorin> (raw)
In-Reply-To: <20091128190101.GA25683@thorin>

On Sat, Nov 28, 2009 at 08:01:01PM +0100, Robert Millan wrote:
> On Fri, Nov 27, 2009 at 10:24:39PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> > Felix Zielcke wrote:
> > > grub_halt is on i386-pc defined as `void grub_halt (int no_apm)' but
> > > everywhere else as `grub_halt (void)'
> > > util/grub-emu.c has a #ifdef for these 2
> > >
> > > Shouldn't we just add an int parameter everywhere to make this more
> > > simple?
> > >
> > >   
> > I think in future we'll have more different halt methods on different
> > platforms. So we could do:
> > grub_halt (int methods)
> > And have e.g.
> > GRUB_HALT_DEFAULT_METHODS
> > And e.g. on i386:
> > #define GRUB_HALT_DEFAULT_METHODS
> > (GRUB_HALT_APM|GRUB_HALT_ACPI|GRUB_HALT_HANG)
> 
> I was hoping we could remove complexity rather than add more of it.
> 
> Why would higher layer (who's just calling grub_halt because it wants the
> system to shutdown) want to know about things like APM or ACPI ?

Well, for now I just unified the headers but kept the current i386-pc
function parameters.  This restores experimental to a buildable state.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



      reply	other threads:[~2009-12-04 21:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25 20:37 grub_halt() Felix Zielcke
2009-11-27 21:24 ` grub_halt() Vladimir 'φ-coder/phcoder' Serbinenko
2009-11-27 21:28   ` grub_halt() Felix Zielcke
2009-11-28 19:01   ` grub_halt() Robert Millan
2009-12-04 21:02     ` Robert Millan [this message]

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=20091204210227.GH1528@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.