From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [PATCH][v2] timekeeping: Fix memory overwrite of sleep_time_bin array Date: Fri, 29 Jul 2016 14:59:09 +0200 (CEST) Message-ID: References: <1468903861-12487-1-git-send-email-yu.c.chen@intel.com> <578DEDBB.9030602@intel.com> <20160729095015.GB8076@sharon> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from Galois.linutronix.de ([146.0.238.70]:51526 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981AbcG2NB3 (ORCPT ); Fri, 29 Jul 2016 09:01:29 -0400 In-Reply-To: <20160729095015.GB8076@sharon> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Chen Yu Cc: "Rafael J. Wysocki" , John Stultz , Xunlei Pang , Zhang Rui , Linux PM list , Linux Kernel Mail List On Fri, 29 Jul 2016, Chen Yu wrote: > On Tue, Jul 19, 2016 at 12:40:14PM +0200, Thomas Gleixner wrote: > 1st is to bypass the sleep time if pm_trace is involved(a little complicated > because it needs to deal with historical pm_trace), or > > 2nd version is to introduce a sysfs interface to allow the > users to specify the threshold of sleep time, any delta > of tsc bigger than the threshold would be regarded as invalid. That one is really overkill. We provide a proper sanity measure for this and be done with it. Thanks, tglx