From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbdBFNX4 (ORCPT ); Mon, 6 Feb 2017 08:23:56 -0500 Received: from mail.skyhub.de ([78.46.96.112]:33598 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbdBFNXy (ORCPT ); Mon, 6 Feb 2017 08:23:54 -0500 Date: Mon, 6 Feb 2017 14:23:49 +0100 From: Borislav Petkov To: Robert Richter Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Peter Zijlstra , Vince Weaver , lkml Subject: Re: [RFC PATCH] perf/stat: Add --disable-hwdt Message-ID: <20170206132349.bl6qbpjflez3lpkp@pd.tnic> References: <20170206121506.mtknwusus4djp2sx@pd.tnic> <20170206122231.GA9404@gmail.com> <20170206124116.7jmrmufthqtnd3dc@pd.tnic> <20170206124447.GA12772@gmail.com> <20170206124937.zlowglr5gpq35piy@pd.tnic> <20170206131832.GG4906@rric.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170206131832.GG4906@rric.localdomain> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 06, 2017 at 02:18:32PM +0100, Robert Richter wrote: > Isn't there the danger the previous watchdog state is never restored > if for some reason perf got killed? So maybe have some other task > running that restores it once perf is gone. Currently, I'm restoring it in the atexit() sighandler. Isn't that always called? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.