Files
u-boot/include
Masahiro Yamada e2282d7076 devres: make Devres optional with CONFIG_DEVRES
Currently, Devres requires additional 16 byte for each allocation,
which is not so insignificant in some cases.

Add CONFIG_DEVRES to make this framework optional.
If the option is disabled, devres functions fall back to
non-managed variants.  For example, devres_alloc() to kzalloc(),
devm_kmalloc() to kmalloc(), etc.

Because devres_head is also surrounded by an ifdef conditional,
there is no memory overhead when CONFIG_DEVRES is disabled.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Suggested-by: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
2015-08-06 07:44:29 -06:00
..
2015-08-05 08:43:46 -06:00
2015-08-05 21:06:17 -06:00
…
…
2015-08-05 21:06:16 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-07-21 17:39:29 -06:00
…
2015-07-27 15:53:48 -07:00
…
…
…
2015-08-05 21:06:16 -06:00
…
…
…
…
…
…
…
…
…
…
2015-07-21 17:39:25 -06:00
…
…
2015-08-05 08:42:41 -06:00
2015-08-05 08:44:07 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-07-22 08:57:54 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-07-21 17:39:25 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-08-05 08:42:41 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-07-21 17:39:27 -06:00
2015-07-21 17:39:28 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-07-26 12:11:33 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…