2008-02-19 15:59:52

by Thomas Petazzoni

[permalink] [raw]
Subject: arch/x86/kernel/acpi/sleep_32.c not compiled ?

Hi,

Maybe I'm missing something completely obvious, but I don't see where
the arch/x86/kernel/acpi/sleep_32.c file gets compiled. The Makefile in
that directory compiles sleep.o, but doesn't compile sleep_$(BITS).o:

obj-$(CONFIG_ACPI) += boot.o
obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup_$(BITS).o

ifneq ($(CONFIG_ACPI_PROCESSOR),)
obj-y += cstate.o processor.o
endif

Sincerly,

Thomas
--
Thomas Petazzoni, [email protected], http://thomas.enix.org
Jabber, [email protected]
Toulibre, http://www.toulibre.org - APRIL, http://www.april.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7


Attachments:
signature.asc (189.00 B)

2008-02-19 21:04:43

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: arch/x86/kernel/acpi/sleep_32.c not compiled ?

On Tuesday, 19 of February 2008, Thomas Petazzoni wrote:
> Hi,

Hi,

> Maybe I'm missing something completely obvious, but I don't see where
> the arch/x86/kernel/acpi/sleep_32.c file gets compiled. The Makefile in
> that directory compiles sleep.o, but doesn't compile sleep_$(BITS).o:
>
> obj-$(CONFIG_ACPI) += boot.o
> obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup_$(BITS).o
>
> ifneq ($(CONFIG_ACPI_PROCESSOR),)
> obj-y += cstate.o processor.o
> endif

No, the file is not build now.

Pavel, is this file really necessary?

Rafael

2008-02-19 22:26:21

by Pavel Machek

[permalink] [raw]
Subject: Re: arch/x86/kernel/acpi/sleep_32.c not compiled ?

On Tue 2008-02-19 22:02:52, Rafael J. Wysocki wrote:
> On Tuesday, 19 of February 2008, Thomas Petazzoni wrote:
> > Hi,
>
> Hi,
>
> > Maybe I'm missing something completely obvious, but I don't see where
> > the arch/x86/kernel/acpi/sleep_32.c file gets compiled. The Makefile in
> > that directory compiles sleep.o, but doesn't compile sleep_$(BITS).o:
> >
> > obj-$(CONFIG_ACPI) += boot.o
> > obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup_$(BITS).o
> >
> > ifneq ($(CONFIG_ACPI_PROCESSOR),)
> > obj-y += cstate.o processor.o
> > endif
>
> No, the file is not build now.
>
> Pavel, is this file really necessary?

sleep_32.c is obsolete. It tried to do s2ram whitelist in kernel, with
just one entry ;-). Remove it. If Mirek Spousta (probably last
remaining owner of whitelisted toshiba, he got it from me ;-)
complains, I'll give him better machine or something.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2008-02-19 23:43:28

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: arch/x86/kernel/acpi/sleep_32.c not compiled ?

On Tuesday, 19 of February 2008, Pavel Machek wrote:
> On Tue 2008-02-19 22:02:52, Rafael J. Wysocki wrote:
> > On Tuesday, 19 of February 2008, Thomas Petazzoni wrote:
> > > Hi,
> >
> > Hi,
> >
> > > Maybe I'm missing something completely obvious, but I don't see where
> > > the arch/x86/kernel/acpi/sleep_32.c file gets compiled. The Makefile in
> > > that directory compiles sleep.o, but doesn't compile sleep_$(BITS).o:
> > >
> > > obj-$(CONFIG_ACPI) += boot.o
> > > obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup_$(BITS).o
> > >
> > > ifneq ($(CONFIG_ACPI_PROCESSOR),)
> > > obj-y += cstate.o processor.o
> > > endif
> >
> > No, the file is not build now.
> >
> > Pavel, is this file really necessary?
>
> sleep_32.c is obsolete. It tried to do s2ram whitelist in kernel, with
> just one entry ;-). Remove it. If Mirek Spousta (probably last
> remaining owner of whitelisted toshiba, he got it from me ;-)
> complains, I'll give him better machine or something.

Well, then perhaps we also should remove the S1 quirk for the same box from
drivers/acpi/sleep/main.c ?

Alternatively, put them both into the same file and simplify things (in which
case I'd vote for drivers/acpi/sleep/main.c)?

Rafael

2008-02-19 23:44:35

by Pavel Machek

[permalink] [raw]
Subject: Re: arch/x86/kernel/acpi/sleep_32.c not compiled ?

On Wed 2008-02-20 00:41:46, Rafael J. Wysocki wrote:
> On Tuesday, 19 of February 2008, Pavel Machek wrote:
> > On Tue 2008-02-19 22:02:52, Rafael J. Wysocki wrote:
> > > On Tuesday, 19 of February 2008, Thomas Petazzoni wrote:
> > > > Hi,
> > >
> > > Hi,
> > >
> > > > Maybe I'm missing something completely obvious, but I don't see where
> > > > the arch/x86/kernel/acpi/sleep_32.c file gets compiled. The Makefile in
> > > > that directory compiles sleep.o, but doesn't compile sleep_$(BITS).o:
> > > >
> > > > obj-$(CONFIG_ACPI) += boot.o
> > > > obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup_$(BITS).o
> > > >
> > > > ifneq ($(CONFIG_ACPI_PROCESSOR),)
> > > > obj-y += cstate.o processor.o
> > > > endif
> > >
> > > No, the file is not build now.
> > >
> > > Pavel, is this file really necessary?
> >
> > sleep_32.c is obsolete. It tried to do s2ram whitelist in kernel, with
> > just one entry ;-). Remove it. If Mirek Spousta (probably last
> > remaining owner of whitelisted toshiba, he got it from me ;-)
> > complains, I'll give him better machine or something.
>
> Well, then perhaps we also should remove the S1 quirk for the same box from
> drivers/acpi/sleep/main.c ?

Yes we probably can do that.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html