That's fair, and if you assume any interrupt handlers from the kernel drivers are also well behaved (with barriers on entry and exit), and assuming that the interrupt handler isn't doing anything that might contend with what you are doing with the peripherals, then adding barriers as per the datasheet might be sufficient.but linux will likely insert a insert a barrier every time does a thread switch within one core
Statistics: Posted by warthog618 — Tue Jan 23, 2024 6:57 am