Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751143AbeAPJGO (ORCPT + 1 other); Tue, 16 Jan 2018 04:06:14 -0500 Received: from mga07.intel.com ([134.134.136.100]:9035 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbeAPJGN (ORCPT ); Tue, 16 Jan 2018 04:06:13 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,367,1511856000"; d="scan'208";a="10596401" Date: Tue, 16 Jan 2018 17:05:14 +0800 From: "Liu, Changcheng" To: Lai Jiangshan , Mathieu Desnoyers , "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, changcheng.liu@intel.com Subject: [PATCH] rcu: remove redundant nxttail index marco define Message-ID: <20180116090514.GA5706@sofia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: rcu nxttail has been optimized to be rcu_segcblist. The index has been defined in linux/rcu_segcblist.h Signed-off-by: Liu Changcheng diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 46a5d19..78cb5f3 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -185,13 +185,6 @@ union rcu_noqs { u16 s; /* Set of bits, aggregate OR here. */ }; -/* Index values for nxttail array in struct rcu_data. */ -#define RCU_DONE_TAIL 0 /* Also RCU_WAIT head. */ -#define RCU_WAIT_TAIL 1 /* Also RCU_NEXT_READY head. */ -#define RCU_NEXT_READY_TAIL 2 /* Also RCU_NEXT head. */ -#define RCU_NEXT_TAIL 3 -#define RCU_NEXT_SIZE 4 - /* Per-CPU data for read-copy update. */ struct rcu_data { /* 1) quiescent-state and grace-period handling : */ -- 2.7.4