From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751427AbdJWK0A (ORCPT ); Mon, 23 Oct 2017 06:26:00 -0400 Received: from s3.sipsolutions.net ([144.76.63.242]:46028 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbdJWKZ6 (ORCPT ); Mon, 23 Oct 2017 06:25:58 -0400 Message-ID: <1508754350.2639.12.camel@sipsolutions.net> Subject: Re: [PATCH v2 31/37] mac80211_hwsim: Replace hrtimer tasklet with softirq hrtimer From: Johannes Berg To: Thomas Gleixner Cc: Anna-Maria Gleixner , LKML , Peter Zijlstra , Ingo Molnar , keescook@chromium.org, Christoph Hellwig , John Stultz , Kalle Valo , linux-wireless@vger.kernel.org Date: Mon, 23 Oct 2017 12:25:50 +0200 In-Reply-To: References: <20171022213938.940451689@linutronix.de> <20171022214053.576969587@linutronix.de> <1508753691.2639.10.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.0-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2017-10-23 at 12:23 +0200, Thomas Gleixner wrote: > 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. I guess you mean you *can* build it? Surely you're introducing the new HR timer modes in some patch that I didn't see? :-) > > > + hrtimer_init(&data->beacon_timer, CLOCK_MONOTONIC, > > > + HRTIMER_MODE_ABS_SOFT); > > Sure, though it does not matter in that case. Will fix that up. Right. Then again, why even pass it to init() and start()? Can you start without going through start()? johannes