diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-08-13 09:00:18 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-08-13 09:00:18 +0100 |
commit | 0787f6e6e7437d4011812b2889d89f2d0609e4b2 (patch) | |
tree | 1b6cfa042f675eb4dae0eb3aa43293ee2225389f | |
parent | aeaef912f86154a70f502a581928f7116e4c0af3 (diff) | |
download | xen-0787f6e6e7437d4011812b2889d89f2d0609e4b2.tar.gz xen-0787f6e6e7437d4011812b2889d89f2d0609e4b2.tar.bz2 xen-0787f6e6e7437d4011812b2889d89f2d0609e4b2.zip |
Clean up event-channel debug-key output, and use spin_lock().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset: 7d02b1046d14
xen-unstable date: Fri Aug 13 08:39:11 2010 +0100
-rw-r--r-- | xen/common/event_channel.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 0fe798098c..3e01fe5453 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -1070,14 +1070,11 @@ static void domain_dump_evtchn_info(struct domain *d) bitmap_scnlistprintf(keyhandler_scratch, sizeof(keyhandler_scratch), d->poll_mask, d->max_vcpus); - printk("Domain %d polling vCPUs: {%s}\n", - d->domain_id, keyhandler_scratch); - - if ( !spin_trylock(&d->event_lock) ) - return; - printk("Event channel information for domain %d:\n" - " port [p/m]\n", d->domain_id); + "Polling vCPUs: {%s}\n" + " port [p/m]\n", d->domain_id, keyhandler_scratch); + + spin_lock(&d->event_lock); for ( port = 1; port < MAX_EVTCHNS(d); ++port ) { |