Searched refs:lglock (Results 1 – 4 of 4) sorted by relevance
/linux-4.4.14/include/linux/ |
D | lglock.h | 36 struct lglock { struct 47 struct lglock name = { .lock = &name ## _lock } argument 52 static struct lglock name = { .lock = &name ## _lock } 54 void lg_lock_init(struct lglock *lg, char *name); 56 void lg_local_lock(struct lglock *lg); 57 void lg_local_unlock(struct lglock *lg); 58 void lg_local_lock_cpu(struct lglock *lg, int cpu); 59 void lg_local_unlock_cpu(struct lglock *lg, int cpu); 61 void lg_double_lock(struct lglock *lg, int cpu1, int cpu2); 62 void lg_double_unlock(struct lglock *lg, int cpu1, int cpu2); [all …]
|
/linux-4.4.14/kernel/locking/ |
D | lglock.c | 13 void lg_lock_init(struct lglock *lg, char *name) in lg_lock_init() 19 void lg_local_lock(struct lglock *lg) in lg_local_lock() 30 void lg_local_unlock(struct lglock *lg) in lg_local_unlock() 41 void lg_local_lock_cpu(struct lglock *lg, int cpu) in lg_local_lock_cpu() 52 void lg_local_unlock_cpu(struct lglock *lg, int cpu) in lg_local_unlock_cpu() 63 void lg_double_lock(struct lglock *lg, int cpu1, int cpu2) in lg_double_lock() 77 void lg_double_unlock(struct lglock *lg, int cpu1, int cpu2) in lg_double_unlock() 85 void lg_global_lock(struct lglock *lg) in lg_global_lock() 99 void lg_global_unlock(struct lglock *lg) in lg_global_unlock()
|
D | Makefile | 18 obj-$(CONFIG_SMP) += lglock.o
|
/linux-4.4.14/Documentation/locking/ |
D | lglock.txt | 1 lglock - local/global locks for mostly local access patterns 6 Location: kernel/locking/lglock.c 7 include/linux/lglock.h 18 lglock will be used where the majority of accesses are cpu local 71 The initial lglock implementation from Nick Piggin used some complex 72 macros to generate the lglock/brlock in lglock.h - they were later 83 #include <linux/lglock.h> 104 lg_local_lock(*lglock); 106 lg_local_unlock(*lglock); 108 lg_local_lock_cpu(*lglock, cpu); [all …]
|