Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751897Ab3IQGSa (ORCPT ); Tue, 17 Sep 2013 02:18:30 -0400 Received: from alvesta.synopsys.com ([198.182.60.77]:33160 "EHLO alvesta.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584Ab3IQGS1 (ORCPT ); Tue, 17 Sep 2013 02:18:27 -0400 From: Vineet Gupta To: Ingo Molnar , Peter Zijlstra , Andrew Morton CC: Subject: [RFC PATCH REBASED 3/3] sched: Remove ARCH specific fpu_counter from task_struct Date: Tue, 17 Sep 2013 11:47:19 +0530 Message-ID: <1379398639-27403-4-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1379398639-27403-1-git-send-email-vgupta@synopsys.com> References: <1379398639-27403-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.12.197.111] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 41 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 Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Andrew Morton --- include/linux/sched.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 6682da3..78386c1 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 -- 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/