Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423435AbbD2OsR (ORCPT ); Wed, 29 Apr 2015 10:48:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57317 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423136AbbD2OsM (ORCPT ); Wed, 29 Apr 2015 10:48:12 -0400 Message-ID: <5540EF29.6010105@redhat.com> Date: Wed, 29 Apr 2015 10:48:09 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Jason Low , Peter Zijlstra , Ingo Molnar , Thomas Gleixner CC: linux-kernel@vger.kernel.org, "Paul E. McKenney" , Andrew Morton , Oleg Nesterov , Frederic Weisbecker , Mel Gorman , Steven Rostedt , Preeti U Murthy , Mike Galbraith , Davidlohr Bueso , Waiman Long , Aswin Chandramouleeswaran , Scott J Norton Subject: Re: [PATCH v2 5/5] sched, timer: Use the atomic task_cputime in thread_group_cputimer References: <1430251224-5764-1-git-send-email-jason.low2@hp.com> <1430251224-5764-6-git-send-email-jason.low2@hp.com> In-Reply-To: <1430251224-5764-6-git-send-email-jason.low2@hp.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1082 Lines: 22 On 04/28/2015 04:00 PM, Jason Low wrote: > Recent optimizations were made to thread_group_cputimer to improve its > scalability by keeping track of cputime stats without a lock. However, > the values were open coded to the structure, causing them to be at > a different abstraction level from the regular task_cputime structure. > Furthermore, any subsequent similar optimizations would not be able to > share the new code, since they are specific to thread_group_cputimer. > > This patch adds the new task_cputime_atomic data structure (introduced in > the previous patch in the series) to thread_group_cputimer for keeping > track of the cputime atomically, which also helps generalize the code. > > Suggested-by: Ingo Molnar > Signed-off-by: Jason Low Acked-by: Rik van Riel -- 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/