aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-03-13 14:07:03 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2014-03-13 14:07:03 -0400
commit799ce1326e8b4efbfb6312937de9619b83088eb4 (patch)
treee1f3af5511097f05c64296685cc2120496a5b487 /net/lapb/lapb_out.c
parentb93e4210f9fa88450b1ffddf4307b41e6d87beff (diff)
Add sbinheap. API compatible with binheap.
This patch introduces the 'sbinheap' binary heap data structure. Litmus's binheap data structure is inefficient when we can put a reasonable upperbound on maximum heap size (ex. When max size is equal to NR_CPUS). When we can put an upperbound on heap size, then we may statically allocate (or at least kmalloc needed memory) for the heap at compile/initialization-time. With this contiguous buffer, we can do away with left/right/parent pointers through standard binary-tree indexing. This also speeds up heap insert/delete operations.
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions