From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vineet Gupta Subject: [PATCH v2 3/3] sched: Remove ARCH specific fpu_counter from task_struct Date: Tue, 8 Oct 2013 13:16:29 +0530 Message-ID: <1381218389-16585-4-git-send-email-vgupta@synopsys.com> References: <1381218389-16585-1-git-send-email-vgupta@synopsys.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1381218389-16585-1-git-send-email-vgupta@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org To: Ingo Molnar , Peter Zijlstra , Andrew Morton , Paul Mundt Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Vineet Gupta Vineet Gupta List-Id: linux-arch.vger.kernel.org From: Vineet Gupta fpu_counter in task_struct was used only by sh/x86. Both of these now carry it in ARCH specific thread_struct, hence this can now be removed from generic task_struct, shrinking it slightly for other arches. Signed-off-by: Vineet Gupta --- include/linux/sched.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 6682da36b293..78386c1e04a3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1046,15 +1046,6 @@ struct task_struct { struct hlist_head preempt_notifiers; #endif - /* - * fpu_counter contains the number of consecutive context switches - * that the FPU is used. If this is over a threshold, the lazy fpu - * saving becomes unlazy to save the trap. This is an unsigned char - * so that after 256 times the counter wraps and the behavior turns - * lazy again; this to deal with bursty apps that only use FPU for - * a short time - */ - unsigned char fpu_counter; #ifdef CONFIG_BLK_DEV_IO_TRACE unsigned int btrace_seq; #endif -- 1.8.1.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kiruna.synopsys.com ([198.182.44.80]:46100 "EHLO kiruna.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754817Ab3JHHrU (ORCPT ); Tue, 8 Oct 2013 03:47:20 -0400 From: Vineet Gupta Subject: [PATCH v2 3/3] sched: Remove ARCH specific fpu_counter from task_struct Date: Tue, 8 Oct 2013 13:16:29 +0530 Message-ID: <1381218389-16585-4-git-send-email-vgupta@synopsys.com> In-Reply-To: <1381218389-16585-1-git-send-email-vgupta@synopsys.com> References: <1381218389-16585-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ingo Molnar , Peter Zijlstra , Andrew Morton , Paul Mundt Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Vineet Gupta Vineet Gupta Message-ID: <20131008074629.vks8tnR8gyYAgYxlMzuhz0MOYqX0IkTvWEWRGEI2E6A@z> From: Vineet Gupta fpu_counter in task_struct was used only by sh/x86. Both of these now carry it in ARCH specific thread_struct, hence this can now be removed from generic task_struct, shrinking it slightly for other arches. Signed-off-by: Vineet Gupta --- include/linux/sched.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 6682da36b293..78386c1e04a3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1046,15 +1046,6 @@ struct task_struct { struct hlist_head preempt_notifiers; #endif - /* - * fpu_counter contains the number of consecutive context switches - * that the FPU is used. If this is over a threshold, the lazy fpu - * saving becomes unlazy to save the trap. This is an unsigned char - * so that after 256 times the counter wraps and the behavior turns - * lazy again; this to deal with bursty apps that only use FPU for - * a short time - */ - unsigned char fpu_counter; #ifdef CONFIG_BLK_DEV_IO_TRACE unsigned int btrace_seq; #endif -- 1.8.1.2