Module: xenomai-head Branch: master Commit: 034d6e80ea6304e92b7f8f48477f34e4d99adfa2 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=034d6e80ea6304e92b7f8f48477f34e4d99adfa2
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Jun 27 10:58:01 2009 +0200 x86: remove now useless I/O bitmap switch code Since 2.6.30, I/O bitmaps are eagerly reinstated in __switch_to(), and no more handled in a lazy way upon access fault. Remove the Xenomai bits that used to force update of the I/O bitmap upon thread switch. --- include/asm-x86/wrappers_32.h | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/include/asm-x86/wrappers_32.h b/include/asm-x86/wrappers_32.h index 08ad4a1..d16cf6d 100644 --- a/include/asm-x86/wrappers_32.h +++ b/include/asm-x86/wrappers_32.h @@ -139,14 +139,7 @@ static inline void wrap_switch_iobitmap(struct task_struct *p, int cpu) static inline void wrap_switch_iobitmap(struct task_struct *p, int cpu) { - struct thread_struct *thread = &p->thread; - struct tss_struct *tss; - - if (test_tsk_thread_flag(p, TIF_IO_BITMAP)) { - tss = &per_cpu(init_tss, cpu); - memcpy(tss->io_bitmap, thread->io_bitmap_ptr, - thread->io_bitmap_max); - } /* NOTE: We don't clear previous leftover io_bitmap in the tss */ + /* I/O bitmap is eagerly switched in __switch_to() */ } #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) */ _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git