mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 04:29:11 -04:00
staging: unisys: add comment to spinlock in struct charqueue
Add a comment to the charqueue's spinlock to explain that it is a lock for the structure. Signed-off-by: Ken Depro <kenneth.depro@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ce572c96f8
commit
b0231f396e
@@ -28,7 +28,7 @@
|
||||
struct charqueue {
|
||||
int alloc_size;
|
||||
int nslots;
|
||||
spinlock_t lock;
|
||||
spinlock_t lock; /* read/write lock for this structure */
|
||||
int head, tail;
|
||||
unsigned char buf[0];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user