UBI: make tests modes dynamic
Similarly to the debugging checks and message, make the test modes be dynamically selected via the "debug_tsts" module parameter or via the "/sys/module/ubi/parameters/debug_tsts" sysfs file. This is consistent with UBIFS as well. And now, since all the Kconfig knobs became dynamic, we can remove the Kconfig.debug file completely. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
@@ -986,8 +986,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)
|
||||
* checks @ubi->thread_enabled. Otherwise we may fail to wake it up.
|
||||
*/
|
||||
spin_lock(&ubi->wl_lock);
|
||||
if (!DBG_DISABLE_BGT)
|
||||
ubi->thread_enabled = 1;
|
||||
ubi->thread_enabled = 1;
|
||||
wake_up_process(ubi->bgt_thread);
|
||||
spin_unlock(&ubi->wl_lock);
|
||||
|
||||
|
Reference in New Issue
Block a user