staging: most: core: add comments to mutex and spinlock definitions
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 12 Nov 2019 13:40:36 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 23:04:53 +0000 (00:04 +0100)
This patch adds a comment to the start_mutex and fifo_lock fields of
the most_channel structure definition.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1573566036-2279-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/core.c

index f7d2c7850cf58d179791710be0778ebe2ffa774b..79e66eb396b89157d0de163da7b8b6306ec90296 100644 (file)
@@ -52,7 +52,7 @@ struct most_channel {
        u16 channel_id;
        char name[STRING_SIZE];
        bool is_poisoned;
-       struct mutex start_mutex;
+       struct mutex start_mutex; /* channel activation synchronization */
        struct mutex nq_mutex; /* nq thread synchronization */
        int is_starving;
        struct most_interface *iface;
@@ -60,7 +60,7 @@ struct most_channel {
        bool keep_mbo;
        bool enqueue_halt;
        struct list_head fifo;
-       spinlock_t fifo_lock;
+       spinlock_t fifo_lock; /* fifo access synchronization */
        struct list_head halt_fifo;
        struct list_head list;
        struct pipe pipe0;