commit | b55eb03e4085a53cc87c5a53b7dacf1df3536ae4 | [log] [tgz] |
---|---|---|
author | Leandro Pereira <leandro.pereira@intel.com> | Wed Feb 14 14:47:11 2018 -0800 |
committer | Andrew Boie <andrewboie@gmail.com> | Thu Feb 15 17:31:59 2018 -0800 |
tree | 5d4d096ef72038c12ad819e907ebec00f5168389 | |
parent | 1bda83af1ca76206da5cc27f753eee57b478f678 [diff] |
kernel: device: Only compare strings if pointer comparison fails Split the search into two loops: in the common scenario, where device names are stored in ROM (and are referenced by the user with CONFIG_* macros), only cheap pointer comparisons will be performed. Reserve string comparisons for a fallback second pass. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>