From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <607aa7749067674c89270ae3b7e428fe.axp-list@archive.invalid> X-Archive-Original-Message-ID: <1.5.4.32.19970414232752.00696c8c@mars.superlink.net> Date: Tue, 15 Apr 1997 01:46:17 +0100 (BST) From: Tim Waugh Subject: Some patches for 2.1.34 Hi, I don't know if these are all correct, but here they are anyway (the first one just looks like a typo). Something also needs to be done to entry.S (it's referring to intr_count), but I'm not entirely sure what. Tim. */ --- linux/include/asm-alpha/atomic.h.orig Tue Apr 15 00:45:12 1997 +++ linux/include/asm-alpha/atomic.h Tue Apr 15 00:45:13 1997 @@ -19,5 +19,5 @@ #define atomic_read(v) ((v)->counter) -#define atomic_set(v) (((v)->counter) = i) +#define atomic_set(v,i) (((v)->counter) = i) /* --- linux/include/asm-alpha/semaphore.h.orig Tue Apr 15 00:52:48 1997 +++ linux/include/asm-alpha/semaphore.h Tue Apr 15 01:07:54 1997 @@ -8,4 +8,5 @@ */ +#include #include @@ -24,4 +25,14 @@ #define sema_init(sem, val) atomic_set(&((sem)->count), val) + +static inline void wake_one_more(struct semaphore *sem) +{ + unsigned long flags; + + save_flags(flags); + cli(); + atomic_inc(&sem->waking); + restore_flags(flags); +} static inline int waking_non_zero(struct semaphore *sem) --- linux/arch/alpha/kernel/alpha_ksyms.c.orig Tue Apr 15 02:13:12 1997 +++ linux/arch/alpha/kernel/alpha_ksyms.c Tue Apr 15 02:13:30 1997 @@ -14,4 +14,5 @@ #include #include +#include #include --- linux/arch/alpha/kernel/irq.c.orig Tue Apr 15 02:38:03 1997 +++ linux/arch/alpha/kernel/irq.c Tue Apr 15 02:38:05 1997 @@ -330,4 +330,5 @@ { struct irqaction * action; + int cpu = smp_processor_id(); if ((unsigned) irq > NR_IRQS) { -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com