From: Andrew Morton <akpm@linux-foundation.org>
To: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH] tridentfb: acceleration code improvements
Date: Thu, 15 May 2008 15:56:14 -0700 [thread overview]
Message-ID: <20080515155614.ca818e04.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080514071200.4f2409b0.krzysztof.h1@poczta.fm>
On Wed, 14 May 2008 07:12:00 +0200
Krzysztof Helt <krzysztof.h1@poczta.fm> wrote:
> This patch brings various acceleration improvements:
> - set copyarea/fillrect for non-accelerated framebuffer (fix)
> - remove 15 bpp depth handling to simplify code as it hardly
> works (15 bpp handling was obviously missing in some switches)
> - add fb_sync call and move waiting before accelerated function
> to make acceleration more asynchronous to cpu (few % of speed
> improvement)
> - add cpu_relax() call in waiting loops
> - make longer register names and name more registers
> - move registers' definition to header
> - general code improvements (shortening, simplifying)
checkpatch whines:
ERROR: space required after that ',' (ctx:VxV)
#543: FILE: include/video/trident.h:7:
+#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(100);
^
ERROR: space required after that ';' (ctx:VxV)
#543: FILE: include/video/trident.h:7:
+#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(100);
^
ERROR: Macros with multiple statements should be enclosed in a do - while loop
#543: FILE: include/video/trident.h:7:
+#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(100);
WARNING: __func__ should be used instead of gcc specific __FUNCTION__
#543: FILE: include/video/trident.h:7:
+#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(100);
perhaps that's all in your todo somewhere.
Also that macro is plain wrong:
if (foo)
debug(...);
else
something();
won't compile. Using the do{...}while(0) thing or perhaps {(...)} will fix.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-05-15 22:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 5:12 [PATCH] tridentfb: acceleration code improvements Krzysztof Helt
2008-05-15 22:56 ` Andrew Morton [this message]
2008-05-16 4:46 ` Krzysztof Helt
2008-05-16 5:16 ` Andrew Morton
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=20080515155614.ca818e04.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=krzysztof.h1@poczta.fm \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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.