From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932227AbeDWQoe (ORCPT ); Mon, 23 Apr 2018 12:44:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33952 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932207AbeDWQo3 (ORCPT ); Mon, 23 Apr 2018 12:44:29 -0400 Date: Mon, 23 Apr 2018 18:44:25 +0200 From: Peter Zijlstra To: Diego Viola Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, len.brown@intel.com, rui.zhang@intel.com, "Rafael J. Wysocki" Subject: Re: Experiencing freezes with kernel 4.16.3 on a desktop with E5500 CPU (bisect included) Message-ID: <20180423164425.GS4129@hirez.programming.kicks-ass.net> References: <20180423091633.GU4064@hirez.programming.kicks-ass.net> <20180423114850.GK4082@hirez.programming.kicks-ass.net> <20180423123847.GL4082@hirez.programming.kicks-ass.net> <20180423155801.GQ4129@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423155801.GQ4129@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 05:58:01PM +0200, Peter Zijlstra wrote: > Thomas, we could not find the de-rate stuff, but the above can be > simplified; what happens is: > > cs->flags |= UNSTABLE; > schedule_work(&watchdog_work) > kthread_run(clocksource_watchdog_kthread) Also, Thomas, do you remember why we spawn a short running kthread from a work ? Can't we simply run the whole thing from the worker thread? > __clocksource_watchdog_kthread() > if (cs->flags & UNSTABLE) > __clocksource_change_rating() > clocksource_select() >