Messages in this thread Patch in this message | | | Date | Tue, 22 Dec 1998 23:19:36 -0500 (EST) | From | Michael Gilbert <> | Subject | 2.1.132 on Alpha: linux/include/asm-alpha/softirq.h |
| |
When compiling 2.1.132 on Alpha, there are compile errors as linux/include/asm-alpha/softirq.h was not patched.
--- linux/include/asm/softirq.h.orig Tue Dec 22 22:45:28 1998 +++ linux/include/asm/softirq.h Tue Dec 22 23:10:09 1998 @@ -27,7 +27,7 @@ extern inline void init_bh(int nr, void (*routine)(void)) { bh_base[nr] = routine; - bh_mask_count[nr] = 0; + atomic_set(&bh_mask_count[nr], 0); bh_mask |= 1 << nr; } @@ -116,12 +116,12 @@ extern inline void disable_bh(int nr) { bh_mask &= ~(1 << nr); - bh_mask_count[nr]++; + atomic_inc(&bh_mask_count[nr]); } extern inline void enable_bh(int nr) { - if (!--bh_mask_count[nr]) + if (atomic_dec_and_test(&bh_mask_count[nr])) bh_mask |= 1 << nr; } MICHAEL Wm. GILBERT mgilbert@oit.umass.edu Technology Development and Special Projects Office of Information Technology (OIT) University of Massachusetts at Amherst Voice: 413-545-3124 Fax: 413-545-3203 A115 Lederle Graduate Research Center UMASS Amherst, MA 01003 USA - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |