mmap slower than ioremap
I am developing for an ARM device running Linux 2.6.37. I am trying to toggle an IO pin as fast as possible. I made a little kernel module and a user space application. I tried two things : Manipulate the GPIO control registers directly from the kernel space using ioremap . mmap() the GPIO control registers without caching and using them from user space. Both methods work, but the second is about 3 times slower than the first (observed on oscilloscope). I think I disabled all caching mechanisms. Of course I'd like to get the best of the two worlds : flexibility and ease of development from