From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365AbcCHSVF (ORCPT ); Tue, 8 Mar 2016 13:21:05 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:50957 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbcCHSUe (ORCPT ); Tue, 8 Mar 2016 13:20:34 -0500 From: Davidlohr Bueso To: tglx@linutronix.de, mingo@kernel.org Cc: peterz@infradead.org, bigeasy@linutronix.de, umgwanakikbuti@gmail.com, paulmck@linux.vnet.ibm.com, dave@stgolabs.net, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH 1/3] rtmutex: Delete save_state member of struct rt_mutex Date: Tue, 8 Mar 2016 10:20:21 -0800 Message-Id: <1457461223-4301-2-git-send-email-dave@stgolabs.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1457461223-4301-1-git-send-email-dave@stgolabs.net> References: <1457461223-4301-1-git-send-email-dave@stgolabs.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Davidlohr Bueso This field (debug) is unused. Furthermore it looks like a result of rtmutex from -rt into upstream, where it serves to determine if the wakeup is for a task blocked on a "sleeping spinlock", iow if this is a regular rt_mutex_lock() or rt_spin_lock(). Of course, upstream we only have regular rt_mutexes, thus we can safely assume nothing will be done with this field anyway. There is also the fact that this is under debug. Signed-off-by: Davidlohr Bueso --- include/linux/rtmutex.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h index 1abba5c..9c50e2e 100644 --- a/include/linux/rtmutex.h +++ b/include/linux/rtmutex.h @@ -32,7 +32,6 @@ struct rt_mutex { struct rb_node *waiters_leftmost; struct task_struct *owner; #ifdef CONFIG_DEBUG_RT_MUTEXES - int save_state; const char *name, *file; int line; void *magic; -- 2.1.4