From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751446AbdJWKXY (ORCPT ); Mon, 23 Oct 2017 06:23:24 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47329 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbdJWKXX (ORCPT ); Mon, 23 Oct 2017 06:23:23 -0400 Date: Mon, 23 Oct 2017 12:23:13 +0200 (CEST) From: Thomas Gleixner To: Johannes Berg cc: Anna-Maria Gleixner , LKML , Peter Zijlstra , Ingo Molnar , keescook@chromium.org, Christoph Hellwig , John Stultz , Kalle Valo , linux-wireless@vger.kernel.org Subject: Re: [PATCH v2 31/37] mac80211_hwsim: Replace hrtimer tasklet with softirq hrtimer In-Reply-To: <1508753691.2639.10.camel@sipsolutions.net> Message-ID: References: <20171022213938.940451689@linutronix.de> <20171022214053.576969587@linutronix.de> <1508753691.2639.10.camel@sipsolutions.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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 On Mon, 23 Oct 2017, Johannes Berg wrote: > On Sun, 2017-10-22 at 23:40 +0200, Anna-Maria Gleixner wrote: > > From: Thomas Gleixner > > > > Switch the timer to HRTIMER_MODE_SOFT, which executed the timer > > callback in softirq context and remove the hrtimer_tasklet. I can't build as its part of the whole hrtimer rework series. > This doesn't build on my tree, due to HRTIMER_MODE_REL_SOFT not > existing. Neither does HRTIMER_MODE_SOFT mentioned above, but that's > just a commit log mistake. Oops. > (It also didn't apply on my tree, but that was a trivial context > change.) > > I don't understand why you initialize it with HRTIMER_MODE_ABS_SOFT > either though: > > > + hrtimer_init(&data->beacon_timer, CLOCK_MONOTONIC, > > + HRTIMER_MODE_ABS_SOFT); Sure, though it does not matter in that case. Will fix that up. Thanks, tglx