Searched refs:bakery (Results 1 – 7 of 7) sorted by relevance
37 #define assert_bakery_entry_valid(entry, bakery) do { \ argument38 assert(bakery); \43 static unsigned int bakery_get_ticket(bakery_lock_t *bakery, unsigned int me) in bakery_get_ticket() argument49 assert(!bakery_ticket_number(bakery->lock_data[me])); in bakery_get_ticket()62 bakery->lock_data[me] = make_bakery_data(CHOOSING_TICKET, my_ticket); in bakery_get_ticket()64 their_ticket = bakery_ticket_number(bakery->lock_data[they]); in bakery_get_ticket()74 bakery->lock_data[me] = make_bakery_data(CHOSEN_TICKET, my_ticket); in bakery_get_ticket()91 void bakery_lock_get(bakery_lock_t *bakery) in bakery_lock_get() argument99 assert_bakery_entry_valid(me, bakery); in bakery_lock_get()102 my_ticket = bakery_get_ticket(bakery, me); in bakery_lock_get()[all …]
75 static inline void bakery_lock_init(bakery_lock_t *bakery) {} in bakery_lock_init() argument76 void bakery_lock_get(bakery_lock_t *bakery);77 void bakery_lock_release(bakery_lock_t *bakery);
28 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c30 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
2043 The bakery lock data structure ``bakery_lock_t`` is allocated in coherent memory2053 * choosing its bakery number.2054 * Bits[1 - 15] : number. This is the bakery number allocated.2078 To use bakery locks when ``USE_COHERENT_MEM`` is disabled, the lock data structure2080 algorithm mentioned earlier. The bakery\_lock structure only allocates the memory2081 for a single CPU. The macro ``DEFINE_BAKERY_LOCK`` allocates all the bakery locks2083 for other cores by using the total size allocated for the bakery\_lock section2088 The bakery lock data structure ``bakery_info_t`` is defined for use when2097 * choosing its bakery number.2098 * Bits[1 - 15] : number. This is the bakery number allocated.[all …]
20 - Use spin-locks instead of bakery locks.559 - The bakery lock structure for coherent memory has been optimised.871 - Removed calling CPU mpidr from the bakery lock API, saving 160 bytes.
305 functions like bakery locks and spin locks are also included in the library.
1893 accommodate all the bakery locks.1900 accessing per-cpu bakery lock information.