mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
scripts/gdb: cast CPU numbers to integer
We won't see more than 2 billion CPUs any time soon, and having cpu_list return long makes the output of lx-cpus a bit ugly. Link: http://lkml.kernel.org/r/dcb45c3b0a59e0fd321fa56ff7aa398458c689b3.1462865983.git.jan.kiszka@siemens.com Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
b1503934a5
commit
4bc393dbcf
1 file changed
+1
-1
@@ -97,7 +97,7 @@ def cpu_list(mask_name):
|
||||
bits >>= 1
|
||||
bit += 1
|
||||
|
||||
yield cpu
|
||||
yield int(cpu)
|
||||
|
||||
|
||||
def each_online_cpu():
|
||||
|
||||
Reference in new issue
Block a user