1 From: Chris Mason <mason@suse.com>
2 Subject: Make proc_event_num_listeners __read_mostly
4 This will lower the fast path costs of the userland connector code.
6 Acked-by: Jeff Mahoney <jeffm@suse.com>
9 drivers/connector/cn_proc.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 --- a/drivers/connector/cn_proc.c
13 +++ b/drivers/connector/cn_proc.c
16 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event))
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 };
22 /* proc_event_counts is used as the sequence number of the netlink message */