projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b150393
)
scripts/gdb: cast CPU numbers to integer
author
Jan Kiszka
<jan.kiszka@siemens.com>
Mon, 23 May 2016 23:25:05 +0000
(16:25 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 24 May 2016 00:04:14 +0000
(17:04 -0700)
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 <jan.kiszka@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gdb/linux/cpus.py
patch
|
blob
|
history
diff --git
a/scripts/gdb/linux/cpus.py
b/scripts/gdb/linux/cpus.py
index
fc316fb
..
ca11e8d
100644
(file)
--- a/
scripts/gdb/linux/cpus.py
+++ b/
scripts/gdb/linux/cpus.py
@@
-97,7
+97,7
@@
def cpu_list(mask_name):
bits >>= 1
bit += 1
- yield
cpu
+ yield
int(cpu)
def each_online_cpu():