Re: [UBUNTU:acpi/ec] Use semaphore instead of spinlock

From: Roland Dreier
Date: Thu Jun 15 2006 - 01:48:05 EST


> [UBUNTU:acpi/ec] Use semaphore instead of spinlock to get rid of missed
> interrupts on ACPI EC (embedded controller)

> - spinlock_t lock;
> + struct semaphore sem;

> + init_MUTEX(&ec->poll.sem);

I think nowadays this should be a struct mutex...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/