All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] xen: events: mark cpu_evtchn_mask_p as __refdata
@ 2011-02-11 15:23 Ian Campbell
  2011-02-11 15:23 ` [PATCH 2/3] xen: annotate functions which only call into __init at start of day Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2011-02-11 15:23 UTC (permalink / raw)
  To: xen-devel
  Cc: Jeremy Fitzhardinge, Ian Campbell, Stefano Stabellini,
	Konrad Rzeszutek Wilk

This variable starts out pointing at init_evtchn_mask which is marked
__initdata but is set to point to a non-init data region in xen_init_IRQ
which is itself an __init function so this is safe.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Tested-and-acked-by: Andrew Jones <drjones@redhat.com>
---
 drivers/xen/events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 51051cf..d88702e 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -114,7 +114,7 @@ struct cpu_evtchn_s {
 static __initdata struct cpu_evtchn_s init_evtchn_mask = {
 	.bits[0 ... (NR_EVENT_CHANNELS/BITS_PER_LONG)-1] = ~0ul,
 };
-static struct cpu_evtchn_s *cpu_evtchn_mask_p = &init_evtchn_mask;
+static struct cpu_evtchn_s __refdata *cpu_evtchn_mask_p = &init_evtchn_mask;
 
 static inline unsigned long *cpu_evtchn_mask(int cpu)
 {
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-11 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 15:23 [PATCH 1/3] xen: events: mark cpu_evtchn_mask_p as __refdata Ian Campbell
2011-02-11 15:23 ` [PATCH 2/3] xen: annotate functions which only call into __init at start of day Ian Campbell
2011-02-11 15:23   ` [PATCH 3/3] xen p2m: annotate variable which appears unused Ian Campbell
2011-02-11 15:37     ` Konrad Rzeszutek Wilk
2011-02-11 16:31   ` [PATCH 2/3] xen: annotate functions which only call into __init at start of day Jan Beulich
2011-02-11 16:37     ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.