All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] question ACPI & CMPXCHG
Date: Sun, 27 Feb 2005 16:37:01 +0000	[thread overview]
Message-ID: <20050227163701.GC6148@stusta.de> (raw)
In-Reply-To: <200502271349.20737.vicente.feito@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

On Sun, Feb 27, 2005 at 05:17:36PM +0100, walter harms wrote:
> hi list,
> when i was looking into arch/i386/kernel/acpi/boot.c
> 
> i found:
> 
> #ifndef __HAVE_ARCH_CMPXCHG
> #warning ACPI uses CMPXCHG, i486 and later hardware
> #endif
> 
> 
> perhaps its nitpicking but ...
> I think the setup should disable ACPI if CMPXCHG does not exist.
> second best generate at least an error ! compile time these day is short 
> and you have a good change to miss warnings.
>...
> --- boot.c.org  2005-02-27 17:10:24.000000000 +0100
> +++ boot.c      2005-02-27 17:11:58.000000000 +0100
> @@ -82,7 +82,7 @@
>  #endif
> 
>  #ifndef __HAVE_ARCH_CMPXCHG
> -#warning ACPI uses CMPXCHG, i486 and later hardware
> +#error  ACPI requires CMPXCHG
>  #endif
>...

This is wrong - instead of an error this should be put as a dependency 
into the Kconfig file.

But the underlying issue is that the current config semantics is, that 
"386" means a generic kernel. I should make a new version of my patch of 
a new i386 cpu selection for allowing a proper handling of such cases.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2005-02-27 16:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-27 13:49 [KJ] question ACPI & CMPXCHG Vicente Feito
2005-02-27 14:50 ` Vicente Feito
2005-02-27 16:17 ` walter harms
2005-02-27 16:37 ` Adrian Bunk [this message]
2005-02-27 17:01 ` Adrian Bunk

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=20050227163701.GC6148@stusta.de \
    --to=bunk@stusta.de \
    --cc=kernel-janitors@vger.kernel.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.