rwsem: do not block readers at head of queue if other readers are active
[platform/adaptation/renesas_rcar/renesas_kernel.git] / lib / interval_tree.c
1 #include <linux/init.h>
2 #include <linux/interval_tree.h>
3 #include <linux/interval_tree_generic.h>
4
5 #define START(node) ((node)->start)
6 #define LAST(node)  ((node)->last)
7
8 INTERVAL_TREE_DEFINE(struct interval_tree_node, rb,
9                      unsigned long, __subtree_last,
10                      START, LAST,, interval_tree)