OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
455adb3
)
sparc64: Make proc_id signed.
author
David S. Miller
<davem@davemloft.net>
Mon, 15 Oct 2018 03:19:31 +0000
(20:19 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 15 Oct 2018 03:19:31 +0000
(20:19 -0700)
So that when it is unset, ie. '-1', userspace can see it
properly.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/cpudata_64.h
patch
|
blob
|
history
diff --git
a/arch/sparc/include/asm/cpudata_64.h
b/arch/sparc/include/asm/cpudata_64.h
index
666d6b5
..
9c3fc03
100644
(file)
--- a/
arch/sparc/include/asm/cpudata_64.h
+++ b/
arch/sparc/include/asm/cpudata_64.h
@@
-28,7
+28,7
@@
typedef struct {
unsigned short sock_id; /* physical package */
unsigned short core_id;
unsigned short max_cache_id; /* groupings of highest shared cache */
-
unsigned short
proc_id; /* strand (aka HW thread) id */
+
signed short
proc_id; /* strand (aka HW thread) id */
} cpuinfo_sparc;
DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);