Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It appears the that the caching code was added in this patch:

https://gcc.gnu.org/ml/gcc-patches/2012-09/msg00076.html

Prior to that, the call:

  asm volatile ("mrs\t%0, ctr_el0":"=r" (cache_info));
was always made.


But the task can be rescheduled on a little core part-way through the execution...

The big cores should report the smaller cache line size always.


I was just pointing out where the caching of the size was added. I'm not making a comment on where the fix should be.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: