Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932392AbbDMPGt (ORCPT ); Mon, 13 Apr 2015 11:06:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753875AbbDMPGs (ORCPT ); Mon, 13 Apr 2015 11:06:48 -0400 Date: Mon, 13 Apr 2015 11:06:40 -0400 From: Luiz Capitulino To: Thomas Gleixner Cc: Marcelo Tosatti , Frederic Weisbecker , linux-kernel@vger.kernel.org, Rik van Riel Subject: Re: kernel/timer: avoid spurious ksoftirqd wakeups (v2) Message-ID: <20150413110640.40f137c4@redhat.com> In-Reply-To: References: <20150406231557.GA5094@amt.cnet> <20150407221244.GB6143@lerouge> <20150410180907.GA13199@amt.cnet> <20150410213037.0ead22a3@redhat.com> Organization: Red Hat 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: 863 Lines: 27 On Sat, 11 Apr 2015 11:25:49 +0200 (CEST) Thomas Gleixner wrote: > On Fri, 10 Apr 2015, Luiz Capitulino wrote: > > On Fri, 10 Apr 2015 15:09:07 -0300 > > > It seems a valid solution for this interrupt is to program > > > sched_timer to the nearest future possible. > > > > What about calling the timer function right there, like > > hrtimer_interrupt() does? > > No, you cannot call the timer function from the enqueue path. The > caller might hold a lock which is taken in the callback as well..... Fair enough. We're going to think about a different solution. > > Thanks, > > tglx > -- 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/