Messages in this thread | | | Date | Wed, 16 Feb 2011 16:38:25 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH] x86: use bitmap library functions |
| |
* Akinobu Mita <akinobu.mita@gmail.com> wrote:
> Use bitmap_set()/bitmap_clear() to fill/zero a region of a bitmap > instead of doing set_bit()/clear_bit() each bit. > > Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: "H. Peter Anvin" <hpa@zytor.com> > Cc: x86@kernel.org > --- > arch/x86/kernel/ioport.c | 20 +++++--------------- > 1 files changed, 5 insertions(+), 15 deletions(-)
Before we can merge this it would be nice to tested this using sys_ioperm(), to make sure port IO still gets denied/allowed as expected. You can check /proc/ioperm to see which ports are (probably) safe to read: 0x80/0xed is usually safe to read/write.
Ingo
| |