From: Len Brown Date: Wed, 28 Jan 2009 17:47:15 +0000 (-0500) Subject: ACPI: remove locking from PM1x_STS register reads X-Git-Tag: v2.6.29-rc4~7^2^3~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b7b01c072435b7832ab392167545a1b38cabc3;p=pandora-kernel.git ACPI: remove locking from PM1x_STS register reads PM1a_STS and PM1b_STS are twins that get OR'd together on reads, and all writes are repeated to both. The fields in PM1x_STS are single bits only, there are no multi-bit fields. So it is not necessary to lock PM1x_STS reads against writes because it is impossible to read an intermediate value of a single bit. It will either be 0 or 1, even if a write is in progress during the read. Reads are asynchronous to writes no matter if a lock is used or not. Signed-off-by: Len Brown --- Reading git-diff-tree failed