···113113CONFIG_IA64_SGI_SN_XP=m114114CONFIG_FORCE_MAX_ZONEORDER=17115115CONFIG_SMP=y116116-CONFIG_NR_CPUS=512116116+CONFIG_NR_CPUS=1024117117# CONFIG_HOTPLUG_CPU is not set118118CONFIG_SCHED_SMT=y119119CONFIG_PREEMPT=y
+29
arch/ia64/kernel/time.c
···249249 */250250 set_normalized_timespec(&wall_to_monotonic, -xtime.tv_sec, -xtime.tv_nsec);251251}252252+253253+#define SMALLUSECS 100254254+255255+void256256+udelay (unsigned long usecs)257257+{258258+ unsigned long start;259259+ unsigned long cycles;260260+ unsigned long smallusecs;261261+262262+ /*263263+ * Execute the non-preemptible delay loop (because the ITC might264264+ * not be synchronized between CPUS) in relatively short time265265+ * chunks, allowing preemption between the chunks.266266+ */267267+ while (usecs > 0) {268268+ smallusecs = (usecs > SMALLUSECS) ? SMALLUSECS : usecs;269269+ preempt_disable();270270+ cycles = smallusecs*local_cpu_data->cyc_per_usec;271271+ start = ia64_get_itc();272272+273273+ while (ia64_get_itc() - start < cycles)274274+ cpu_relax();275275+276276+ preempt_enable();277277+ usecs -= smallusecs;278278+ }279279+}280280+EXPORT_SYMBOL(udelay);
+3-3
arch/ia64/kernel/uncached.c
···5353 if ((status != PAL_VISIBILITY_OK) &&5454 (status != PAL_VISIBILITY_OK_REMOTE_NEEDED))5555 printk(KERN_DEBUG "pal_prefetch_visibility() returns %i on "5656- "CPU %i\n", status, get_cpu());5656+ "CPU %i\n", status, raw_smp_processor_id());5757}58585959···6363 status = ia64_pal_mc_drain();6464 if (status)6565 printk(KERN_WARNING "ia64_pal_mc_drain() failed with %i on "6666- "CPU %i\n", status, get_cpu());6666+ "CPU %i\n", status, raw_smp_processor_id());6767}68686969···105105 status = ia64_pal_prefetch_visibility(PAL_VISIBILITY_PHYSICAL);106106107107 dprintk(KERN_INFO "pal_prefetch_visibility() returns %i on cpu %i\n",108108- status, get_cpu());108108+ status, raw_smp_processor_id());109109110110 if (!status) {111111 status = smp_call_function(uncached_ipi_visibility, NULL, 0, 1);