Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-24 Thread Tim Dijkstra
On Tue, 24 Apr 2007 00:56:02 +0200 Luca Tettamanti <[EMAIL PROTECTED]> wrote: > Il Fri, Apr 20, 2007 at 06:59:11PM +0200, Stefan Seyfried ha scritto: > > On Wed, Apr 18, 2007 at 09:22:20PM +0200, Tim Dijkstra wrote: > > > Luca Tettamanti <[EMAIL PROTECTED]> wrote: > > > > Well, it's possible to d

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-24 Thread Pavel Machek
Hi! > It's quite simple: a weak symbol may be discared by the linker if it > found another copy. > > This is the updated patch. You can either use the original 2/2 or this > one: Looks ok to me. Pavel -- (english) http://www.livejournal.c

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-23 Thread Luca Tettamanti
Il Fri, Apr 20, 2007 at 06:59:11PM +0200, Stefan Seyfried ha scritto: > On Wed, Apr 18, 2007 at 09:22:20PM +0200, Tim Dijkstra wrote: > > Luca Tettamanti <[EMAIL PROTECTED]> wrote: > > > Well, it's possible to do something like this: > > > > > > int s2ram_default_do(void) { > > > use /s/p

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-20 Thread Stefan Seyfried
On Wed, Apr 18, 2007 at 09:22:20PM +0200, Tim Dijkstra wrote: > Luca Tettamanti <[EMAIL PROTECTED]> wrote: > > Well, it's possible to do something like this: > > > > int s2ram_default_do(void) { > > use /s/p/s > > } > > > > __attribute__((weak)) int s2ram_do(void) { > > return s2r

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-18 Thread Tim Dijkstra
On Mon, 16 Apr 2007 23:22:32 +0200 Luca Tettamanti <[EMAIL PROTECTED]> wrote: > Il Mon, Apr 16, 2007 at 10:35:25PM +0200, Tim Dijkstra ha scritto: > > On Sun, 15 Apr 2007 02:36:12 +0200 > > Luca Tettamanti <[EMAIL PROTECTED]> wrote: > > > > > > @@ -27,7 +27,16 @@ > > > > int s2ram_do(void) > >

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-16 Thread Luca Tettamanti
Il Mon, Apr 16, 2007 at 10:35:25PM +0200, Tim Dijkstra ha scritto: > On Sun, 15 Apr 2007 02:36:12 +0200 > Luca Tettamanti <[EMAIL PROTECTED]> wrote: > > > > @@ -27,7 +27,16 @@ > > > int s2ram_do(void) > > > { > > > int ret = 0; > > > - FILE *f = fopen("/sys/power/state", "w"); > > > + FILE *f

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-16 Thread Tim Dijkstra
On Sun, 15 Apr 2007 02:36:12 +0200 Luca Tettamanti <[EMAIL PROTECTED]> wrote: > > @@ -27,7 +27,16 @@ > > int s2ram_do(void) > > { > > int ret = 0; > > - FILE *f = fopen("/sys/power/state", "w"); > > + FILE *f; > > + > > + /* If this works we're done. Else we just continue as if nothing

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-14 Thread Luca Tettamanti
Il Sat, Apr 14, 2007 at 11:09:01PM +0200, Tim Dijkstra ha scritto: > Hi, > > This patch fixes all my concerns I raised in the previous e-mail. It > applies on top of lucas patch. So if you apply 1/2, I'll do this one > on top. If everybody agrees that is... > > grts > > diff -urN a/Makefile b/

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-14 Thread Pavel Machek
Hi! > >> Add s2ram support for PPC architecture. s2ram.{c,h} contain the > >> implementation of the required functions, used by the main file. The > >> Makefile selects the correct platform files using $(ARCH) variable > >> (autodetected by default, can be overridden). > >> > >> PPC code is based

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-14 Thread Tim Dijkstra
Hi, This patch fixes all my concerns I raised in the previous e-mail. It applies on top of lucas patch. So if you apply 1/2, I'll do this one on top. If everybody agrees that is... grts diff -urN a/Makefile b/Makefile --- a/Makefile 2007-04-14 22:55:32.0 +0200 +++ b/Makefile 2007-04-1

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-14 Thread Tim Dijkstra
On Wed, 11 Apr 2007 00:19:35 +0200 Luca Tettamanti <[EMAIL PROTECTED]> wrote: > Add s2ram support for PPC architecture. s2ram.{c,h} contain the > implementation of the required functions, used by the main file. The > Makefile selects the correct platform files using $(ARCH) variable > (autodetecte

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-14 Thread Luca Tettamanti
On 4/11/07, Tim Dijkstra <[EMAIL PROTECTED]> wrote: > Luca Tettamanti schreef: > > Add s2ram support for PPC architecture. s2ram.{c,h} contain the > > implementation of the required functions, used by the main file. The > > Makefile selects the correct platform files using $(ARCH) variable > > (aut

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-14 Thread Luca Tettamanti
On 4/11/07, Pavel Machek <[EMAIL PROTECTED]> wrote: > > Add s2ram support for PPC architecture. s2ram.{c,h} contain the > > implementation of the required functions, used by the main file. The > > Makefile selects the correct platform files using $(ARCH) variable > > (autodetected by default, can b

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-11 Thread Tim Dijkstra
Luca Tettamanti schreef: > Add s2ram support for PPC architecture. s2ram.{c,h} contain the > implementation of the required functions, used by the main file. The > Makefile selects the correct platform files using $(ARCH) variable > (autodetected by default, can be overridden). > > PPC code is base

Re: [Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-11 Thread Pavel Machek
Hi! > Add s2ram support for PPC architecture. s2ram.{c,h} contain the > implementation of the required functions, used by the main file. The > Makefile selects the correct platform files using $(ARCH) variable > (autodetected by default, can be overridden). > > PPC code is based on original patch

[Suspend-devel] [PATCH 2/2] s2ram: add PPC support

2007-04-10 Thread Luca Tettamanti
Add s2ram support for PPC architecture. s2ram.{c,h} contain the implementation of the required functions, used by the main file. The Makefile selects the correct platform files using $(ARCH) variable (autodetected by default, can be overridden). PPC code is based on original patch from Tim Dijkstr