ia64/xen-unstable

changeset 2940:7457699e5eb5

bitkeeper revision 1.1159.1.408 (41938e99JmRZnbaT_CzgZF29AJ_c3Q)

Disable check if destination CPU can receive IPI for now.
author cl349@freefall.cl.cam.ac.uk
date Thu Nov 11 16:08:57 2004 +0000 (2004-11-11)
parents 56e1b2a95a45
children 7067320caa37
files linux-2.6.9-xen-sparse/arch/xen/i386/kernel/smp.c
line diff
     1.1 --- a/linux-2.6.9-xen-sparse/arch/xen/i386/kernel/smp.c	Thu Nov 11 16:05:04 2004 +0000
     1.2 +++ b/linux-2.6.9-xen-sparse/arch/xen/i386/kernel/smp.c	Thu Nov 11 16:08:57 2004 +0000
     1.3 @@ -135,10 +135,12 @@ static inline void __send_IPI_one(unsign
     1.4  	evtchn = per_cpu(ipi_to_evtchn, cpu)[vector];
     1.5  	// printk("send_IPI_mask_bitmask cpu %d vector %d evtchn %d\n", cpu, vector, evtchn);
     1.6  	if (evtchn) {
     1.7 +#if 0
     1.8  		shared_info_t *s = HYPERVISOR_shared_info;
     1.9  		while (synch_test_bit(evtchn, &s->evtchn_pending[0]) ||
    1.10  		       synch_test_bit(evtchn, &s->evtchn_mask[0]))
    1.11  			;
    1.12 +#endif
    1.13  		notify_via_evtchn(evtchn);
    1.14  	} else
    1.15  		printk("send_IPI to unbound port %d/%d",
    1.16 @@ -417,7 +419,7 @@ void flush_tlb_page(struct vm_area_struc
    1.17  	if (current->active_mm == mm) {
    1.18  		if(current->mm)
    1.19  			__flush_tlb_one(va);
    1.20 -		 else
    1.21 +		else
    1.22  		 	leave_mm(smp_processor_id());
    1.23  	}
    1.24  
    1.25 @@ -513,10 +515,10 @@ int smp_call_function (void (*func) (voi
    1.26  	/* Wait for response */
    1.27  	while (atomic_read(&data.started) != cpus)
    1.28  		barrier();
    1.29 +
    1.30  	if (wait)
    1.31  		while (atomic_read(&data.finished) != cpus)
    1.32  			barrier();
    1.33 -
    1.34  	spin_unlock(&call_lock);
    1.35  
    1.36  	return 0;