]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.suse/connector-read-mostly
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.suse / connector-read-mostly
1 From: Chris Mason <mason@suse.com>
2 Subject: Make proc_event_num_listeners __read_mostly
3
4 This will lower the fast path costs of the userland connector code.
5
6 Acked-by: Jeff Mahoney <jeffm@suse.com>
7
8 ---
9 drivers/connector/cn_proc.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 --- a/drivers/connector/cn_proc.c
13 +++ b/drivers/connector/cn_proc.c
14 @@ -34,7 +34,7 @@
15
16 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event))
17
18 -static atomic_t proc_event_num_listeners = ATOMIC_INIT(0);
19 +static atomic_t proc_event_num_listeners __read_mostly = ATOMIC_INIT(0);
20 static struct cb_id cn_proc_event_id = { CN_IDX_PROC, CN_VAL_PROC };
21
22 /* proc_event_counts is used as the sequence number of the netlink message */