Skip to content

Commit 8562e89

Browse files
committed
Merge tag 'for-linus-4.13b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes from Juergen Gross: "Three minor cleanups for xen related drivers" * tag 'for-linus-4.13b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen: dont fiddle with event channel masking in suspend/resume xen: selfballoon: remove unnecessary static in frontswap_selfshrink() xen: Drop un-informative message during boot
2 parents 3d9d740 + e91b2b1 commit 8562e89

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

drivers/xen/events/events_base.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,6 @@ static void bind_evtchn_to_cpu(unsigned int chn, unsigned int cpu)
343343
info->cpu = cpu;
344344
}
345345

346-
static void xen_evtchn_mask_all(void)
347-
{
348-
unsigned int evtchn;
349-
350-
for (evtchn = 0; evtchn < xen_evtchn_nr_channels(); evtchn++)
351-
mask_evtchn(evtchn);
352-
}
353-
354346
/**
355347
* notify_remote_via_irq - send event to remote end of event channel via irq
356348
* @irq: irq of event channel to send event to
@@ -1573,7 +1565,6 @@ void xen_irq_resume(void)
15731565
struct irq_info *info;
15741566

15751567
/* New event-channel space is not 'live' yet. */
1576-
xen_evtchn_mask_all();
15771568
xen_evtchn_resume();
15781569

15791570
/* No IRQ <-> event-channel mappings. */
@@ -1681,6 +1672,7 @@ module_param(fifo_events, bool, 0);
16811672
void __init xen_init_IRQ(void)
16821673
{
16831674
int ret = -EINVAL;
1675+
unsigned int evtchn;
16841676

16851677
if (fifo_events)
16861678
ret = xen_evtchn_fifo_init();
@@ -1692,7 +1684,8 @@ void __init xen_init_IRQ(void)
16921684
BUG_ON(!evtchn_to_irq);
16931685

16941686
/* No event channels are 'live' right now. */
1695-
xen_evtchn_mask_all();
1687+
for (evtchn = 0; evtchn < xen_evtchn_nr_channels(); evtchn++)
1688+
mask_evtchn(evtchn);
16961689

16971690
pirq_needs_eoi = pirq_needs_eoi_flag;
16981691

drivers/xen/xen-selfballoon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ static unsigned long frontswap_inertia_counter;
151151
static void frontswap_selfshrink(void)
152152
{
153153
static unsigned long cur_frontswap_pages;
154-
static unsigned long last_frontswap_pages;
155-
static unsigned long tgt_frontswap_pages;
154+
unsigned long last_frontswap_pages;
155+
unsigned long tgt_frontswap_pages;
156156

157157
last_frontswap_pages = cur_frontswap_pages;
158158
cur_frontswap_pages = frontswap_curr_pages();

drivers/xen/xenfs/super.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ static int __init xenfs_init(void)
8787
if (xen_domain())
8888
return register_filesystem(&xenfs_type);
8989

90-
pr_info("not registering filesystem on non-xen platform\n");
9190
return 0;
9291
}
9392

0 commit comments

Comments
 (0)