All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Len Brown <lenb@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	x86@kernel.org, linux-pm@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] x86 APM: delete Linux kernel APM support
Date: Thu, 24 Mar 2011 09:39:59 +0100	[thread overview]
Message-ID: <20110324083959.GE30812@elte.hu> (raw)
In-Reply-To: <alpine.LFD.2.02.1103240414450.4529@x980>


* Len Brown <lenb@kernel.org> wrote:

> From: Len Brown <len.brown@intel.com>
> 
> Microsoft was able to delete APM from Windows in 2006
> with the release of Windows Vista. [...]

Does Windows XP still support it?

> [...]  5 years later it seems quite safe that the latest Linux kernel can 
> also.
> 
> The vintage APM laptops have become difficult to find,
> making changes in this area difficult to test.
> 
> apm_bios.h remains for CONFIG_APM_EMULATION
> used by non-x86 architectures.

Dunno. This bit:

> --- a/Documentation/feature-removal-schedule.txt
> +++ b/Documentation/feature-removal-schedule.txt
> @@ -618,12 +618,3 @@ Why:	The original implementation of memsw feature enabled by
>  	can also cleanup the parameter handling a bit ().
>  Who:	Michal Hocko <mhocko@suse.cz>
>  
> -----------------------------
> -
> -What:	CONFIG_APM
> -When:	2.6.40
> -Why:	Microsoft deleted APM from Windows as of Vista in in 2006.
> -	It now seems more than safe that the latest Linux Kernel be APM-free.
> -	The vintage laptops supporting APM are now difficult to find,
> -	making it problatic to maintain this code.
> -Who:	Len Brown <len.brown@intel.com>

Is weird as there's no such CONFIG_APM entry upstream, and never was. Which 
tree is this entry included in?

While i'm not a fan of APM at all, this removal is a tad fast IMHO.

Beyond the lack of a upstream-visible feature-removal-schedule entry, we still 
have an Arcnet driver which hardware was obsoleted by Ethernet in the late 80s, 
and we still have i486 support and those are *much* older than APM.

If you look at the diffstat:

>  Documentation/feature-removal-schedule.txt |    9 -
>  MAINTAINERS                                |    8 -
>  arch/x86/Kconfig                           |  125 --
>  arch/x86/boot/Makefile                     |    1 -
>  arch/x86/boot/apm.c                        |   75 -
>  arch/x86/boot/main.c                       |    5 -
>  arch/x86/include/asm/bootparam.h           |    3 +-
>  arch/x86/kernel/Makefile                   |    2 -
>  arch/x86/kernel/apm_32.c                   | 2463 ----------------------------
>  arch/x86/kernel/process.c                  |    3 -
>  arch/x86/kernel/reboot.c                   |    3 -
>  arch/x86/kernel/setup.c                    |    4 -
>  12 files changed, 1 insertions(+), 2700 deletions(-)

You see that the kernel implementation is nicely modularized and its 
cross-section to the rest of arch/x86/ is minimal. To arch/x86/ it's little 
more than an obscure driver.

Thus from a maintenance POV APM has not been much of a drag on the x86 
maintainer side. Sure, we do not test it, but that's the case with most of the 
obsolete drivers in the kernel.

The principle is that as long as there's no ongoing drag, the cost of carrying 
obsolete drivers is minimal - and the unknown cost of screwing someone in a big 
way by removing hardware support is hard to measure reliably. So we are 
cautious and err on the side of supporting too much hardware.

Removal could be prepared by:

 - moving CONFIG_APM to under CONFIG_EXPERT though, and keep it there for a few 
   releases, and see whether anyone complains

 - we could emit a WARN() with a "APM support will be obsoleted, please report 
   this if you depend on this feature" text or so, and see what happens for a 
   couple of releases.

Thanks,

	Ingo

  parent reply	other threads:[~2011-03-24  8:41 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.LFD.2.02.1103232321070.3848@x980>
     [not found] ` <20110324154505.934a56a0.sfr@canb.auug.org.au>
2011-03-24  7:39   ` [PATCH] APM: delete APM in Linux-2.6.40 Len Brown
2011-03-24  7:39   ` Len Brown
2011-03-24  8:16     ` [PATCH] x86 APM: delete Linux kernel APM support Len Brown
2011-03-24  8:31       ` [PATCH] x86 APM: delete Linux kernel APM support (v2) Len Brown
2011-03-24  8:31       ` Len Brown
2011-03-24 16:01         ` Andi Kleen
2011-03-24 16:01         ` Andi Kleen
2011-03-24  8:39       ` [PATCH] x86 APM: delete Linux kernel APM support Ingo Molnar
2011-03-24  8:39       ` Ingo Molnar [this message]
2011-03-24 23:49         ` Len Brown
2011-03-24 23:49         ` Len Brown
2011-03-25 11:30           ` Ingo Molnar
2011-03-25 11:30           ` Ingo Molnar
2011-03-25 12:38             ` Ingo Molnar
2011-03-25 12:41               ` Ingo Molnar
2011-03-25 12:41               ` Ingo Molnar
2011-03-25 12:38             ` Ingo Molnar
2011-03-25 22:33             ` Rafael J. Wysocki
2011-03-26  4:35               ` Len Brown
2011-03-26  4:35               ` Len Brown
2011-04-08  6:25               ` Pavel Machek
2011-04-08  6:25               ` Pavel Machek
2011-04-08 20:55                 ` H. Peter Anvin
2011-04-08 20:55                 ` H. Peter Anvin
2011-04-11 13:05                   ` Pavel Machek
2011-04-11 18:19                     ` H. Peter Anvin
2011-04-11 18:19                     ` H. Peter Anvin
2011-04-13 13:30                       ` Pavel Machek
2011-04-13 13:30                       ` Pavel Machek
2011-04-11 13:05                   ` Pavel Machek
2011-03-25 22:33             ` Rafael J. Wysocki
2011-03-26  5:01             ` Len Brown
2011-03-26  9:31               ` Ingo Molnar
2011-03-26  9:31               ` Ingo Molnar
2011-03-27 21:40               ` Ondrej Zary
2011-03-28  4:51                 ` Ingo Molnar
2011-03-28  5:43                   ` H. Peter Anvin
2011-03-28  5:43                     ` H. Peter Anvin
2011-03-28  4:51                 ` Ingo Molnar
2011-03-28 12:57                 ` H. Peter Anvin
2011-03-28 12:57                 ` H. Peter Anvin
2011-03-27 21:40               ` Ondrej Zary
2011-03-28  5:18               ` Ingo Molnar
2011-03-28  5:18               ` Ingo Molnar
2011-03-26  5:01             ` Len Brown
2011-03-25 15:41           ` Calvin Walton
2011-03-25 15:41           ` Calvin Walton
2011-03-24  8:16     ` Len Brown
2011-03-24  8:18     ` [PATCH] APM: delete APM in Linux-2.6.40 Stephen Rothwell
2011-03-24  8:18     ` Stephen Rothwell
2011-03-24  8:38     ` Alexander Stein
2011-03-24  8:38     ` Alexander Stein
2011-03-24 10:21     ` Henrique de Moraes Holschuh
2011-03-24 10:21     ` Henrique de Moraes Holschuh
2011-03-24 23:05       ` Len Brown
2011-03-24 23:05       ` Len Brown
2011-03-25  1:07         ` Henrique de Moraes Holschuh
2011-03-25  1:07         ` Henrique de Moraes Holschuh
2011-03-25  1:34           ` Len Brown
2011-03-25  1:34           ` Len Brown
2011-04-04 16:44           ` Pavel Machek
2011-04-04 20:18             ` Len Brown
2011-04-04 20:18             ` Len Brown
2011-04-04 16:44           ` Pavel Machek
2011-03-24 12:15     ` Ondrej Zary
2011-03-24 12:15     ` Ondrej Zary
2011-03-24 23:29       ` Len Brown
2011-03-25  8:07         ` Ondrej Zary
2011-03-25  8:07         ` Ondrej Zary
2011-03-26  5:09           ` Len Brown
2011-03-26  5:09           ` Len Brown
2011-03-24 23:29       ` Len Brown
2011-04-02 21:40     ` Yuhong Bao
2011-04-02 21:40     ` Yuhong Bao

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=20110324083959.GE30812@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=sfr@canb.auug.org.au \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@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.