Commit b0231f39 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

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: default avatarKen Depro <kenneth.depro@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce572c96
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
struct charqueue { struct charqueue {
int alloc_size; int alloc_size;
int nslots; int nslots;
spinlock_t lock; spinlock_t lock; /* read/write lock for this structure */
int head, tail; int head, tail;
unsigned char buf[0]; unsigned char buf[0];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment