linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: paulus@samba.org
Cc: linuxppc-dev@ozlabs.org, torvalds@linux-foundation.org
Subject: Re: [PATCH 2/2] powerpc: Use the new generic strncpy_from_user() and strnlen_user()
Date: Sun, 27 May 2012 23:56:40 -0400 (EDT)	[thread overview]
Message-ID: <20120527.235640.1644147106476829779.davem@davemloft.net> (raw)
In-Reply-To: <20120528030347.GB6822@bloggs.ozlabs.ibm.com>

From: Paul Mackerras <paulus@samba.org>
Date: Mon, 28 May 2012 13:03:47 +1000

> This is much the same as for SPARC except that we can do the find_zero()
> function more efficiently using the count-leading-zeroes instructions.
> Tested on 32-bit and 64-bit PowerPC.
> 
> Signed-off-by: Paul Mackerras <paulus@samba.org>

Looks great.

Acked-by: David S. Miller <davem@davemloft.net>

I might hack sparc64 to use 'lzd' or 'popc' on newer chips via code
patching at some point.

  reply	other threads:[~2012-05-28  3:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28  2:59 [PATCH 1/2] lib: Fix generic strnlen_user for 32-bit big-endian machines Paul Mackerras
2012-05-28  3:03 ` [PATCH 2/2] powerpc: Use the new generic strncpy_from_user() and strnlen_user() Paul Mackerras
2012-05-28  3:56   ` David Miller [this message]
2012-05-28  3:55 ` [PATCH 1/2] lib: Fix generic strnlen_user for 32-bit big-endian machines David Miller

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=20120527.235640.1644147106476829779.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).