iosapic.c (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) | iosapic.c (5d2068da8d339e4dff8f9b9a1246e6a79e2949d8) |
---|---|
1/* 2 * I/O SAPIC support. 3 * 4 * Copyright (C) 1999 Intel Corp. 5 * Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com> 6 * Copyright (C) 2000-2002 J.I. Lee <jung-ik.lee@intel.com> 7 * Copyright (C) 1999-2000, 2002-2003 Hewlett-Packard Co. 8 * David Mosberger-Tang <davidm@hpl.hp.com> --- 676 unchanged lines hidden (view full) --- 685 /* 686 * Otherwise, round-robin interrupt vectors across all the 687 * processors. (It'd be nice if we could be smarter in the 688 * case of NUMA.) 689 */ 690 do { 691 if (++cpu >= nr_cpu_ids) 692 cpu = 0; | 1/* 2 * I/O SAPIC support. 3 * 4 * Copyright (C) 1999 Intel Corp. 5 * Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com> 6 * Copyright (C) 2000-2002 J.I. Lee <jung-ik.lee@intel.com> 7 * Copyright (C) 1999-2000, 2002-2003 Hewlett-Packard Co. 8 * David Mosberger-Tang <davidm@hpl.hp.com> --- 676 unchanged lines hidden (view full) --- 685 /* 686 * Otherwise, round-robin interrupt vectors across all the 687 * processors. (It'd be nice if we could be smarter in the 688 * case of NUMA.) 689 */ 690 do { 691 if (++cpu >= nr_cpu_ids) 692 cpu = 0; |
693 } while (!cpu_online(cpu) || !cpu_isset(cpu, domain)); | 693 } while (!cpu_online(cpu) || !cpumask_test_cpu(cpu, &domain)); |
694 695 return cpu_physical_id(cpu); 696#else /* CONFIG_SMP */ 697 return cpu_physical_id(smp_processor_id()); 698#endif 699} 700 701static inline unsigned char choose_dmode(void) --- 440 unchanged lines hidden --- | 694 695 return cpu_physical_id(cpu); 696#else /* CONFIG_SMP */ 697 return cpu_physical_id(smp_processor_id()); 698#endif 699} 700 701static inline unsigned char choose_dmode(void) --- 440 unchanged lines hidden --- |