]> git.baikalelectronics.ru Git - kernel.git/commit
Remove 'recurse into child resources' logic from 'reserve_region_with_split()'
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Apr 2009 04:44:24 +0000 (21:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Apr 2009 04:44:24 +0000 (21:44 -0700)
commitfcabf658ff6d56431cebc1a53aa13d5cabccf214
tree09a93c03def4a2ace3fef25f4d6fa48ef2f5629c
parentb9eb5d4b9ee928043e86ac0215166e7b9088a532
Remove 'recurse into child resources' logic from 'reserve_region_with_split()'

This function is not actually used right now, since the original use
case for it was done with insert_resource_expand_to_fit() instead.

However, we now have another usage case that wants to basically do a
"reserve IO resource, splitting around existing resources", however that
one doesn't actually want the "recurse into the conflicting resource"
logic at all.

And since recursing into the conflicting resource was the most complex
part, and isn't wanted, just remove it.  Maybe we'll some day want both
versions, but we can just resurrect the logic then.

Tested-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/resource.c