Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933198AbbDKJZ1 (ORCPT ); Sat, 11 Apr 2015 05:25:27 -0400 Received: from www.linutronix.de ([62.245.132.108]:54058 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933078AbbDKJZ0 (ORCPT ); Sat, 11 Apr 2015 05:25:26 -0400 Date: Sat, 11 Apr 2015 11:25:49 +0200 (CEST) From: Thomas Gleixner To: Luiz Capitulino cc: Marcelo Tosatti , Frederic Weisbecker , linux-kernel@vger.kernel.org, Rik van Riel Subject: Re: kernel/timer: avoid spurious ksoftirqd wakeups (v2) In-Reply-To: <20150410213037.0ead22a3@redhat.com> Message-ID: References: <20150406231557.GA5094@amt.cnet> <20150407221244.GB6143@lerouge> <20150410180907.GA13199@amt.cnet> <20150410213037.0ead22a3@redhat.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 680 Lines: 19 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..... 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/