lkml.org 
[lkml]   [2018]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.18 144/150] sparc64: Make proc_id signed.
    Date
    4.18-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "David S. Miller" <davem@davemloft.net>

    [ Upstream commit b3e1eb8e7ac9aaa283989496651d99267c4cad6c ]

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

    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/sparc/include/asm/cpudata_64.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- 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);

    \
     
     \ /
      Last update: 2018-11-02 19:48    [W:3.135 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site