Re: 2.4.21pre3 smp_affinity, very strange

Arjan van de Ven (arjanv@redhat.com)
19 Jan 2003 19:54:05 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-16409-1043014374-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> Did the APIC or mpparse changes cause this?
+#ifdef CONFIG_X86_CLUSTERED_APIC
+static inline int target_cpus(void)
+{
+ static int cpu;
+ switch(clustered_apic_mode){
+ case CLUSTERED_APIC_NUMAQ:
+ /* Broadcast intrs to local quad only. */
+ return APIC_BROADCAST_ID_APIC;
+ case CLUSTERED_APIC_XAPIC:
+ /*round robin the interrupts*/
+ cpu =3D (cpu+1)%smp_num_cpus;
+ return cpu_to_physical_apicid(cpu);
+ default:
+ }
+ return cpu_online_map;
+}
+#else
+#define target_cpus() (0x01)
+#endif
(2.4.21-pre3)
that's wrong..... 0x01 -> 0xFF and it should be fixed
=20

--=_courier-16409-1043014374-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+KvRNxULwo51rQBIRAhmFAJ4x6Egb+voQeRTyfRLAuXW/739GxACdFcGI
hjVrTToOIGvRrd5E2ZzxnP0=
=Exws
-----END PGP SIGNATURE-----

--=_courier-16409-1043014374-0001-2--