diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2015-02-18 00:47:41 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-18 01:34:54 +0300 |
commit | 54e2289a34e13d956acb841a00c3a6f06aced3f9 (patch) | |
tree | 3c5c97fca93b00e4e1e5d48494f321c1cd41c38d /drivers/Kconfig | |
parent | 2478a8a15ccaddd68e84bb8791cd468f636673e9 (diff) | |
download | linux-54e2289a34e13d956acb841a00c3a6f06aced3f9.tar.xz |
scripts/gdb: use a generator instead of iterator for task list
The iterator does not return any task_struct from the thread_group list
because the first condition in the 'if not t or ...' will only be the
first time None.
Instead of keeping track of the state ourself in the next() function, we
fall back using Python's generator.
Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/Kconfig')
0 files changed, 0 insertions, 0 deletions