Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754973Ab3F1Oin (ORCPT ); Fri, 28 Jun 2013 10:38:43 -0400 Received: from one.firstfloor.org ([193.170.194.197]:44853 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752128Ab3F1Oim (ORCPT ); Fri, 28 Jun 2013 10:38:42 -0400 Date: Fri, 28 Jun 2013 16:38:40 +0200 From: Andi Kleen To: Eliezer Tamir Cc: David Miller , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Willem de Bruijn , Eric Dumazet , Andi Kleen , HPA , Cody P Schafer , Eliezer Tamir Subject: Re: [PATCH net-next 2/2] net: avoid calling sched_clock when LLS is off Message-ID: <20130628143840.GS6123@two.firstfloor.org> References: <20130628125918.14419.36214.stgit@ladj378.jer.intel.com> <20130628125934.14419.38109.stgit@ladj378.jer.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130628125934.14419.38109.stgit@ladj378.jer.intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 27 > diff --git a/fs/select.c b/fs/select.c > index 79b876e..3654075 100644 > --- a/fs/select.c > +++ b/fs/select.c > @@ -402,7 +402,7 @@ int do_select(int n, fd_set_bits *fds, struct timespec *end_time) > poll_table *wait; > int retval, i, timed_out = 0; > unsigned long slack = 0; > - unsigned int ll_flag = POLL_LL; > + unsigned int ll_flag = ll_get_flag(); Is that a global flag? That's still the wrong level. It should look at something in the file descriptor (preferably without fetching any new cache lines) -Andi > > +static inline unsigned int ll_get_flag(void) > +{ > + return sysctl_net_ll_poll ? POLL_LL : 0; > +} -- 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/