From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Shaohua Li <shaohua.li@intel.com>,
lkml <linux-kernel@vger.kernel.org>,
Dave Airlie <airlied@gmail.com>,
Arjan van de Ven <arjan@infradead.org>
Subject: Re: [3/4] add agp_generic_destroy_pages()
Date: Thu, 21 Aug 2008 13:49:52 +0200 [thread overview]
Message-ID: <20080821114952.GE30667@elte.hu> (raw)
In-Reply-To: <20080820200807.324aa671.akpm@linux-foundation.org>
* Andrew Morton <akpm@linux-foundation.org> wrote:
> stylistic nit:
>
> > +
> > + for (i = 0; i < curr->page_count; i++) {
> > + curr->memory[i] = (unsigned long)gart_to_virt(
> > + curr->memory[i]);
> > + curr->bridge->driver->agp_destroy_page(
> > + (void *)curr->memory[i],
> > + AGP_PAGE_DESTROY_UNMAP);
> > + }
> > + for (i = 0; i < curr->page_count; i++) {
> > + curr->bridge->driver->agp_destroy_page(
> > + (void *)curr->memory[i],
> > + AGP_PAGE_DESTROY_FREE);
> > + }
>
> Make the above code a standalone function and call it here.
>
> Then convert all drivers over so their .agp_destroy_pages points at
> that new function.
>
> Then remove the `if'.
good point.
[ Shaohua, when you fix this, please do it as a delta patch against your
current patchset (or against tip/master). Thanks. ]
Ingo
prev parent reply other threads:[~2008-08-21 11:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 2:46 [3/4] add agp_generic_destroy_pages() Shaohua Li
2008-08-21 3:08 ` Andrew Morton
2008-08-21 11:49 ` Ingo Molnar [this message]
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=20080821114952.GE30667@elte.hu \
--to=mingo@elte.hu \
--cc=airlied@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shaohua.li@intel.com \
/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.