Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc/spufs: sputrace: Only enable logging on open(), prevent multi…
…ple 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 <jk@ozlabs.org>
- Loading branch information