From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753347AbbDAOI7 (ORCPT ); Wed, 1 Apr 2015 10:08:59 -0400 Received: from g9t1613g.houston.hp.com ([15.240.0.71]:45750 "EHLO g9t1613g.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751738AbbDAOI4 (ORCPT ); Wed, 1 Apr 2015 10:08:56 -0400 Message-ID: <551BFBF2.6000706@hp.com> Date: Wed, 01 Apr 2015 10:08:50 -0400 From: Waiman Long User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12 MIME-Version: 1.0 To: Peter Zijlstra CC: Ingo Molnar , linux-kernel@vger.kernel.org, Shuah Khan , Scott J Norton , Douglas Hatch Subject: Re: [PATCH] lfsr: a simple binary Galois linear feedback shift register References: <1427822889-8783-1-git-send-email-Waiman.Long@hp.com> <20150401074550.GU27490@worktop.programming.kicks-ass.net> In-Reply-To: <20150401074550.GU27490@worktop.programming.kicks-ass.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/01/2015 03:45 AM, Peter Zijlstra wrote: > On Tue, Mar 31, 2015 at 01:28:09PM -0400, Waiman Long wrote: >> This patch is based on the code sent out by Peter Zijstra as part >> of his queue spinlock patch to provide a hashing function with open >> addressing. The lfsr() function can be used to return a sequence of >> numbers that cycle through all the bit patterns (2^n -1) of a given >> bit width n except the value 0 in a somewhat random fashion depending >> on the LFSR tap that is being used. >> >> This code should be a standalone patch and not part of a larger >> patch series. > Yeah, except we don't merge code without users, which is why such stuff > typically gets a lift on the larger series you mention. OK, if that is the case, I will embedded it in the qspinlock series. -Longman