net: avoid calling sched_clock when LLS is off
authorEliezer Tamir <eliezer.tamir@linux.intel.com>
Fri, 28 Jun 2013 12:59:35 +0000 (15:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jul 2013 21:06:47 +0000 (14:06 -0700)
commit91e2fd337839319c7745e2cb84cfbf8cf1426a1a
tree1a832c8fb04fc687dfd40e4a4b69b15d60049172
parentad6276e0fe724b1c8ac3a0bf138d151665ab2349
net: avoid calling sched_clock when LLS is off

Change Low Latency Sockets code for select and poll so that
when LLS is disabled sched_clock() is never called.

Also, avoid sending POLL_LL to sockets if disabled.

Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/select.c
include/net/ll_poll.h