Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-31 Thread Rafael J. Wysocki
On Monday, 31 of January 2005 19:20, Pavel Machek wrote: > Hi! > > > > static inline void free_pagedir(struct pbe *pblist) > > > { > > > struct pbe *pbe; > > > > > > while (pblist) { > > > pbe = pblist + PB_PAGE_SKIP; > > > pblist = pbe->next; > >

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-31 Thread Pavel Machek
Hi! > > static inline void free_pagedir(struct pbe *pblist) > > { > > struct pbe *pbe; > > > > while (pblist) { > > pbe = pblist + PB_PAGE_SKIP; > > pblist = pbe->next; > > free_page((unsigned long)pbe); > > } > >

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-31 Thread Pavel Machek
Hi! static inline void free_pagedir(struct pbe *pblist) { struct pbe *pbe; while (pblist) { pbe = pblist + PB_PAGE_SKIP; pblist = pbe-next; free_page((unsigned long)pbe); }

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-31 Thread Rafael J. Wysocki
On Monday, 31 of January 2005 19:20, Pavel Machek wrote: Hi! static inline void free_pagedir(struct pbe *pblist) { struct pbe *pbe; while (pblist) { pbe = pblist + PB_PAGE_SKIP; pblist = pbe-next;

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Rafael J. Wysocki
On Friday, 28 of January 2005 18:24, you wrote: > Hi! > [-- snip --] > > I'll do some testing later. > > > diff -Nru linux-2.6.11-rc2-orig/include/linux/suspend.h > > linux-2.6.11-rc2/include/linux/suspend.h > > --- linux-2.6.11-rc2-orig/include/linux/suspend.h 2005-01-28 > >

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Rafael J. Wysocki
On Friday, 28 of January 2005 15:07, Martin Zwickel wrote: > > @@ -373,15 +377,22 @@ > > > > static int write_pagedir(void) > > { > > - unsigned long addr = (unsigned long)pagedir_nosave; > > int error = 0; > > - int n = SUSPEND_PD_PAGES(nr_copy_pages); > > - int i; > > + unsigned

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Pavel Machek
Hi! > The following patch is (yet) an(other) attempt to eliminate the need for > using higher > order memory allocations on suspend. It accomplishes this by replacing the > array > of page backup entries with a list, so it is only necessary to allocate > individual > memory pages. > > I have

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Martin Zwickel
> @@ -373,15 +377,22 @@ > > static int write_pagedir(void) > { > - unsigned long addr = (unsigned long)pagedir_nosave; > int error = 0; > - int n = SUSPEND_PD_PAGES(nr_copy_pages); > - int i; > + unsigned n = 0; > + struct pbe * pbe; > + > + printk( "Writing

[RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Rafael J. Wysocki
Hi, The following patch is (yet) an(other) attempt to eliminate the need for using higher order memory allocations on suspend. It accomplishes this by replacing the array of page backup entries with a list, so it is only necessary to allocate individual memory pages. I have noticed that the

[RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Rafael J. Wysocki
Hi, The following patch is (yet) an(other) attempt to eliminate the need for using higher order memory allocations on suspend. It accomplishes this by replacing the array of page backup entries with a list, so it is only necessary to allocate individual memory pages. I have noticed that the

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Martin Zwickel
@@ -373,15 +377,22 @@ static int write_pagedir(void) { - unsigned long addr = (unsigned long)pagedir_nosave; int error = 0; - int n = SUSPEND_PD_PAGES(nr_copy_pages); - int i; + unsigned n = 0; + struct pbe * pbe; + + printk( Writing pagedir ...); +

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Pavel Machek
Hi! The following patch is (yet) an(other) attempt to eliminate the need for using higher order memory allocations on suspend. It accomplishes this by replacing the array of page backup entries with a list, so it is only necessary to allocate individual memory pages. I have noticed

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Rafael J. Wysocki
On Friday, 28 of January 2005 15:07, Martin Zwickel wrote: @@ -373,15 +377,22 @@ static int write_pagedir(void) { - unsigned long addr = (unsigned long)pagedir_nosave; int error = 0; - int n = SUSPEND_PD_PAGES(nr_copy_pages); - int i; + unsigned n = 0; +

Re: [RFC][PATCH] swsusp: do not use higher order memory allocations on suspend

2005-01-28 Thread Rafael J. Wysocki
On Friday, 28 of January 2005 18:24, you wrote: Hi! [-- snip --] I'll do some testing later. diff -Nru linux-2.6.11-rc2-orig/include/linux/suspend.h linux-2.6.11-rc2/include/linux/suspend.h --- linux-2.6.11-rc2-orig/include/linux/suspend.h 2005-01-28 14:23:42.0 +0100