Module: xenomai-jki Branch: for-upstream Commit: 8337fc5b6077556ba11f308d5b6bfc6bac6ab241 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=8337fc5b6077556ba11f308d5b6bfc6bac6ab241
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Sun Apr 18 19:29:17 2010 +0200 RTDM: Use non-atomic bitops for used_fildes All bit manipulations happen under rt_fildes_lock, so there is no need for atomic ops. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- ksrc/skins/rtdm/core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ksrc/skins/rtdm/core.c b/ksrc/skins/rtdm/core.c index bf905df..11102e2 100644 --- a/ksrc/skins/rtdm/core.c +++ b/ksrc/skins/rtdm/core.c @@ -125,7 +125,7 @@ static int create_instance(struct rtdm_device *device, } fd = find_first_zero_bit(used_fildes, RTDM_FD_MAX); - set_bit(fd, used_fildes); + __set_bit(fd, used_fildes); open_fildes++; xnlock_put_irqrestore(&rt_fildes_lock, s); @@ -175,7 +175,7 @@ static int create_instance(struct rtdm_device *device, static void __cleanup_fildes(struct rtdm_fildes *fildes) { - clear_bit((fildes - fildes_table), used_fildes); + __clear_bit((fildes - fildes_table), used_fildes); fildes->context = NULL; open_fildes--; } _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git