Re: [RFC Patch]Use ar.kr2 for smp_processor_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Zou" == Zou Nan hai <nanhai.zou@xxxxxxxxx> writes:

Zou> Pin ar.kr2 of each CPU, so that smp_processor_id can use it.
Zou> This will save some memory foot-print when smp_procerror_id() is
Zou> called.

Accessing ar.k? takes 12 cycles... it's faster in the kernel to
use current_thread_info()->cpu which if cache hot can be done in two
cycles.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux