From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752886AbbDAHpy (ORCPT ); Wed, 1 Apr 2015 03:45:54 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:56717 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752353AbbDAHpu (ORCPT ); Wed, 1 Apr 2015 03:45:50 -0400 Date: Wed, 1 Apr 2015 09:45:50 +0200 From: Peter Zijlstra To: Waiman Long 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 Message-ID: <20150401074550.GU27490@worktop.programming.kicks-ass.net> References: <1427822889-8783-1-git-send-email-Waiman.Long@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1427822889-8783-1-git-send-email-Waiman.Long@hp.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.