Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbbFLKRh (ORCPT ); Fri, 12 Jun 2015 06:17:37 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60521 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbbFLKRf convert rfc822-to-8bit (ORCPT ); Fri, 12 Jun 2015 06:17:35 -0400 Message-ID: <1434104217.1495.74.camel@twins> Subject: Re: [PATCH 1/1] cputime: Make the reported utime+stime correspond to the actual runtime. From: Peter Zijlstra To: Fredrik Markstrom Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Rik van Riel Date: Fri, 12 Jun 2015 12:16:57 +0200 In-Reply-To: <1434099316-29749-2-git-send-email-fredrik.markstrom@gmail.com> References: <1434099316-29749-1-git-send-email-fredrik.markstrom@gmail.com> <1434099316-29749-2-git-send-email-fredrik.markstrom@gmail.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 658 Lines: 15 On Fri, 2015-06-12 at 10:55 +0200, Fredrik Markstrom wrote: > The scaling mechanism might sometimes cause top to report >100% > (sometimes > 1000%) cpu usage for a single thread. This patch makes > sure that stime+utime corresponds to the actual runtime of the thread. This Changelog is inadequate, it does not explain the actual problem. > +static DEFINE_SPINLOCK(prev_time_lock); global (spin)locks are bad. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/