From: Jeremy Kerr Date: Wed, 15 Oct 2008 02:16:18 +0000 (+1100) Subject: powerpc/spufs: sputrace: Only enable logging on open(), prevent multiple openers X-Git-Tag: v2.6.28-rc1~58^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baf399273f2ea38e2fcbd4d0b6cc7ba7f7db43eb;p=pandora-kernel.git powerpc/spufs: sputrace: Only enable logging on open(), prevent multiple openers Currently, sputrace will start logging to the event buffer before the log buffer has been open()ed. This results in a heap of "lost samples" warnings if the sputrace file hasn't yet been opened. Since the buffer is reset on open() anyway, there's no need to enable logging when no-one has opened the log. Because open clears the log, make it return EBUSY for mutliple open calls. Signed-off-by: Jeremy Kerr --- Reading git-diff-tree failed