Clean up event-channel debug-key output, and use spin_lock().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
Keir Fraser committed 2010-08-13 08:39:11 +01:00
1 parent 76ec4da93b
commit b91d9efd39
1 file changed
+4 -7
+4 -7
View File
@@ -1123,14 +1123,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 )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.