From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 2 of 5] Mark data_size __read_mostly because its only written once Date: Fri, 06 May 2011 20:25:33 +0200 Message-ID: <91c40bb4c01a331a41ab.1304706333@localhost> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: George Dunlap List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1304697395 -7200 # Node ID 91c40bb4c01a331a41ab6a14a2b5ec7d12e86a76 # Parent a19b5f66ce46efd6f8f697583f9bdbc2b567fdbd Mark data_size __read_mostly because its only written once. Signed-off-by: Olaf Hering diff -r a19b5f66ce46 -r 91c40bb4c01a xen/common/trace.c --- a/xen/common/trace.c Fri May 06 17:56:35 2011 +0200 +++ b/xen/common/trace.c Fri May 06 17:56:35 2011 +0200 @@ -54,7 +54,7 @@ static unsigned int t_info_pages; static DEFINE_PER_CPU_READ_MOSTLY(struct t_buf *, t_bufs); static DEFINE_PER_CPU_READ_MOSTLY(unsigned char *, t_data); static DEFINE_PER_CPU_READ_MOSTLY(spinlock_t, t_lock); -static u32 data_size; +static u32 data_size __read_mostly; /* High water mark for trace buffers; */ /* Send virtual interrupt when buffer level reaches this point */