mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/7] memcpy command: do not set read/write size
Date: Mon,  4 Apr 2011 15:09:41 +0200	[thread overview]
Message-ID: <1301922585-8144-4-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1301922585-8144-1-git-send-email-s.hauer@pengutronix.de>

The memcpy command can be much faster if we do not copy in byte
mode.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 commands/mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/commands/mem.c b/commands/mem.c
index 73bf915..8df5f0a 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -418,7 +418,7 @@ static int do_mem_cp(struct command *cmdtp, int argc, char *argv[])
 	char *sourcefile = DEVMEM;
 	char *destfile = DEVMEM;
 	int sourcefd, destfd;
-	int mode = O_RWSIZE_1;
+	int mode = 0;
 	struct stat statbuf;
 	int ret = 0;
 
-- 
1.7.2.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2011-04-04 13:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 13:09 various fixes and updates Sascha Hauer
2011-04-04 13:09 ` [PATCH 1/7] arm: update mach-types Sascha Hauer
2011-04-04 13:09 ` [PATCH 2/7] driver: Do not forget to remove device from active list Sascha Hauer
2011-04-04 13:09 ` Sascha Hauer [this message]
2011-04-04 13:09 ` [PATCH 4/7] mmc: check correctness of the voltage mask in ocr Sascha Hauer
2011-04-04 13:09 ` [PATCH 5/7] fs: errno should be set correctly before the end of functions Sascha Hauer
2011-04-04 13:09 ` [PATCH 6/7] usbnet: do not initialize ethernet device from usb device Sascha Hauer
2011-04-04 13:09 ` [PATCH 7/7] ARM: Add missing parameter name Sascha Hauer

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=1301922585-8144-4-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox