Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755462Ab3GAVIi (ORCPT ); Mon, 1 Jul 2013 17:08:38 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:44045 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755057Ab3GAVIh (ORCPT ); Mon, 1 Jul 2013 17:08:37 -0400 Date: Mon, 01 Jul 2013 14:08:33 -0700 (PDT) Message-Id: <20130701.140833.1705666564717621661.davem@davemloft.net> To: eliezer.tamir@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, willemb@google.com, erdnetdev@gmail.com, andi@firstfloor.org, hpa@zytor.com, devel-lists@codyps.com, eliezer@tamir.org.il Subject: Re: [PATCH net-next 0/2] net: lls cleanup patches From: David Miller In-Reply-To: <20130628125918.14419.36214.stgit@ladj378.jer.intel.com> References: <20130628125918.14419.36214.stgit@ladj378.jer.intel.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 28 From: Eliezer Tamir Date: Fri, 28 Jun 2013 15:59:18 +0300 > Here are two cleanup patches. > > 1. fix warning from debug_smp_processor_id(). > - reported by Cody P Schafer. > > 2. avoid calling sched_clock() in select and poll when lls is disabled. > - reported by Andi Kleen. > > Thanks to everyone for their comments. Applied, but like Ben said perhaps you want to remember the last cpu you got the sched_clock() measurement from and abort the ll poll if it changes on you instead of using a comparison between two cpus. But then again, since preemption is enabled, the cpu could change back and forth during the sched_clock() call, so you wouldn't be able to reliably detect this anyways. In the grand scheme of things all of this probably doesn't matter at all. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/