Skip to content
Snippets Groups Projects
Select Git revision
  • 91e040a79df73d371f70792f30380d4e44805250
  • master default
  • android-container
  • nanopc-t4
  • for-kernelci
  • WIP-syscall
  • v4.16-rc5
  • v4.16-rc4
  • v4.16-rc3
  • v4.16-rc2
  • v4.16-rc1
  • v4.15
  • v4.15-rc9
  • v4.15-rc8
  • v4.15-rc7
  • v4.15-rc6
  • v4.15-rc5
  • v4.15-rc4
  • v4.15-rc3
  • v4.15-rc2
  • v4.15-rc1
  • v4.14
  • v4.14-rc8
  • v4.14-rc7
  • v4.14-rc6
  • v4.14-rc5
26 results

process.c

Blame
    • Vineet Gupta's avatar
      91e040a7
      ARC: syscall for userspace cmpxchg assist · 91e040a7
      Vineet Gupta authored
      
      Older ARC700 cores (ARC750 specifically) lack instructions to implement
      atomic r-w-w. This is problematic for userspace libraries such as NPTL
      which need atomic primitives. So enable them by providing kernel assist.
      This is costly but really the only sane soluton (othern than tight
      spinning using the otherwise availiable atomic exchange EX instruciton).
      
      Good thing is there are only a few of these cores running Linux out in
      the wild.
      
      This only works on UP systems.
      
      Reviewed-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
      91e040a7
      History
      ARC: syscall for userspace cmpxchg assist
      Vineet Gupta authored
      
      Older ARC700 cores (ARC750 specifically) lack instructions to implement
      atomic r-w-w. This is problematic for userspace libraries such as NPTL
      which need atomic primitives. So enable them by providing kernel assist.
      This is costly but really the only sane soluton (othern than tight
      spinning using the otherwise availiable atomic exchange EX instruciton).
      
      Good thing is there are only a few of these cores running Linux out in
      the wild.
      
      This only works on UP systems.
      
      Reviewed-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    xdp.h 239 B
    /* SPDX-License-Identifier: GPL-2.0 */
    #ifndef __NETNS_XDP_H__
    #define __NETNS_XDP_H__
    
    #include <linux/rculist.h>
    #include <linux/mutex.h>
    
    struct netns_xdp {
    	struct mutex		lock;
    	struct hlist_head	list;
    };
    
    #endif /* __NETNS_XDP_H__ */