mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 21:39:46 +07:00
6d2052d188
Change the definition of the RBCOMPUTE function. The propagate callback repeatedly calls RBCOMPUTE as it moves from leaf to root. it wants to stop recomputing once the augmented subtree information doesn't change. This was previously checked using the == operator, but that only works when the augmented subtree information is a scalar field. This commit modifies the RBCOMPUTE function so that it now sets the augmented subtree information instead of returning it, and returns a boolean value indicating if the propagate callback should stop. The motivation for this change is that I want to introduce augmented rbtree uses where the augmented data for the subtree is a struct instead of a scalar. Link: http://lkml.kernel.org/r/20190703040156.56953-4-walken@google.com Signed-off-by: Michel Lespinasse <walken@google.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: David Howells <dhowells@redhat.com> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Uladzislau Rezki <urezki@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
sched | ||
unaligned | ||
atomic.h | ||
bitmap.h | ||
bitops.h | ||
bits.h | ||
bug.h | ||
compiler-gcc.h | ||
compiler.h | ||
const.h | ||
coresight-pmu.h | ||
ctype.h | ||
debug_locks.h | ||
delay.h | ||
err.h | ||
export.h | ||
filter.h | ||
ftrace.h | ||
gfp.h | ||
hardirq.h | ||
hash.h | ||
hashtable.h | ||
interrupt.h | ||
irqflags.h | ||
jhash.h | ||
kallsyms.h | ||
kern_levels.h | ||
kernel.h | ||
linkage.h | ||
list.h | ||
lockdep.h | ||
log2.h | ||
module.h | ||
mutex.h | ||
nmi.h | ||
numa.h | ||
overflow.h | ||
poison.h | ||
proc_fs.h | ||
rbtree_augmented.h | ||
rbtree.h | ||
rcu.h | ||
refcount.h | ||
ring_buffer.h | ||
seq_file.h | ||
sizes.h | ||
spinlock.h | ||
stacktrace.h | ||
string.h | ||
stringify.h | ||
time64.h | ||
types.h | ||
zalloc.h |