Changeset 09ab0a9a in mainline for kernel/generic/src/synch


Ignore:
Timestamp:
2018-09-13T12:05:53Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc74cb5
Parents:
b2aaaa0
git-author:
Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
git-committer:
Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
Message:

Fix vertical spacing with new Ccheck revision.

Location:
kernel/generic/src/synch
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/condvar.c

    rb2aaaa0 r09ab0a9a  
    189189}
    190190
    191 
    192191/** @}
    193192 */
  • kernel/generic/src/synch/futex.c

    rb2aaaa0 r09ab0a9a  
    9494} futex_ptr_t;
    9595
    96 
    9796static void destroy_task_cache(work_t *work);
    9897
     
    116115static bool task_fut_ht_equal(const cht_link_t *item1, const cht_link_t *item2);
    117116static bool task_fut_ht_key_equal(void *key, const cht_link_t *item);
    118 
    119117
    120118/** Mutex protecting the global futex hash table.
     
    226224}
    227225
    228 
    229226/** Initialize the kernel futex structure.
    230227 *
     
    284281        return get_and_cache_futex(paddr, uaddr);
    285282}
    286 
    287283
    288284/** Finds the physical address of the futex variable. */
     
    331327        return futex;
    332328}
    333 
    334329
    335330/**
     
    448443}
    449444
    450 
    451445/** Return the hash of the key stored in the item */
    452446size_t futex_ht_hash(const ht_link_t *item)
  • kernel/generic/src/synch/rcu.c

    rb2aaaa0 r09ab0a9a  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    2928
    3029/** @addtogroup sync
     
    247246} rcu_data_t;
    248247
    249 
    250248static rcu_data_t rcu;
    251249
     
    294292static void upd_max_cbs_in_slice(size_t arriving_cbs_cnt);
    295293
    296 
    297 
    298294/** Initializes global RCU structures. */
    299295void rcu_init(void)
     
    394390        link_initialize(&thread->rcu.preempt_link);
    395391}
    396 
    397392
    398393/** Cleans up global RCU resources and stops dispatching callbacks.
     
    715710        return cur_cbs_empty() && next_cbs_empty() && arriving_cbs_empty();
    716711}
    717 
    718712
    719713/** Reclaimer thread dispatches locally queued callbacks once a GP ends. */
     
    918912        return expedite;
    919913}
    920 
    921914
    922915#ifdef RCU_PREEMPT_A
     
    12911284}
    12921285
    1293 
    12941286/** The detector thread detects and notifies reclaimers of grace period ends. */
    12951287static void detector(void *arg)
     
    13371329        return !interrupted;
    13381330}
    1339 
    13401331
    13411332static void end_cur_gp(void)
     
    16081599        }
    16091600}
    1610 
    16111601
    16121602#endif /* RCU_PREEMPT_PODZIMEK */
  • kernel/generic/src/synch/smp_memory_barrier.c

    rb2aaaa0 r09ab0a9a  
    4040#include <config.h>
    4141
    42 
    4342static void issue_mem_bar(void *arg)
    4443{
  • kernel/generic/src/synch/waitq.c

    rb2aaaa0 r09ab0a9a  
    6161static void waitq_sleep_timed_out(void *);
    6262static void waitq_complete_wakeup(waitq_t *);
    63 
    6463
    6564/** Initialize wait queue
     
    489488}
    490489
    491 
    492490/** Internal SMP- and IRQ-unsafe version of waitq_wakeup()
    493491 *
  • kernel/generic/src/synch/workqueue.c

    rb2aaaa0 r09ab0a9a  
    5252#define WORK_ITEM_MAGIC  0xfeec1777U
    5353
    54 
    5554struct work_queue {
    5655        /*
     
    9695};
    9796
    98 
    9997/** Min number of idle workers to keep. */
    10098static size_t min_worker_cnt;
     
    111109static int booting = true;
    112110
    113 
    114111typedef struct {
    115112        IRQ_SPINLOCK_DECLARE(lock);
     
    121118static nonblock_adder_t nonblock_adder;
    122119
    123 
    124 
    125120/** Typedef a worker thread signaling operation prototype. */
    126121typedef void (*signal_op_t)(struct work_queue *workq);
    127 
    128122
    129123/* Fwd decl. */
     
    790784        --workq->idle_worker_cnt;
    791785}
    792 
    793786
    794787/** Invoked from thread_ready() right before the thread is woken up. */
     
    888881}
    889882
    890 
    891883static bool dequeue_add_req(nonblock_adder_t *info, struct work_queue **pworkq)
    892884{
     
    925917        }
    926918}
    927 
    928919
    929920static void nonblock_init(void)
Note: See TracChangeset for help on using the changeset viewer.