Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xtensa/nputs: add a mutex to prevent concurrent tasks from writing
Considering SMP, multiples CPU would be able to call up_nputs simultaneously. This function is most used by syslog and, in spite of the syslog supporting buffered output, the implementation of the up_nputs allows multiple threads to run concurrently, messing with the log messages. Please check apache#6618 for more information about the locking mechanism.
- Loading branch information