Skip to contentSkip to conversation

sparc64: Make proc_id signed.

PATCH New David Miller 1 participant 1 message Oct 15, 2018 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 sparc64: Make proc_id signed.

So that when it is unset, ie. '-1', userspace can see it properly.

---
 arch/sparc/include/asm/cpudata_64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/include/asm/cpudata_64.h +1 -1
index 666d6b5c0440..9c3fc03abe9a 100644
@@ -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);
Signature · 1 line
2.19.1