Subject: Re: splx() optimization [was Re: SMP re-eetrancy in "bottom half"
To: None <ups@tree.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 05/30/2005 06:37:45
> @@ -403,6 +405,8 @@
>  	movl	CPUVAR(ILEVEL),%r13d					;\
>  	cmpl	%ebx,%r13d						;\
>  	jae	10f			/* currently masked; hold it */	;\
> +	testl	$((1<<LIR_IPI) | (1<<LIR_TIMER)), CPUVAR(IPENDING)      ;\
> +	jnz	10f           /* Let IPI and TIMER run first */         ;\
>  	incl	MY_COUNT+V_INTR		/* statistical info */		;\
>  	incq	IS_EVCNT(%r14)						;\

how about:

	testl	$(-(1 << (num + 1))), CPUVAR(IPENDING)

YAMAMOTO Takashi