1. 19 9月, 2007 2 次提交
    • M
      [POWERPC] spufs: Combine spufs_coredump_calls with spufs_calls · 48cad41f
      Michael Ellerman 提交于
      Because spufs might be built as a module, we can't have other parts of the
      kernel calling directly into it, we need stub routines that check first if the
      module is loaded.
      
      Currently we have two structures which hold callbacks for these stubs, the
      syscalls are in spufs_calls and the coredump calls are in spufs_coredump_calls.
      In both cases the logic for registering/unregistering is essentially the same,
      so we can simplify things by combining the two.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
      Acked-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      48cad41f
    • J
      [POWERPC] cell: Unify spufs syscall path · 98f06978
      Jeremy Kerr 提交于
      At present, a built-in spufs will not use the spufs_calls callbacks, but
      directly call sys_spu_create.  This saves us an indirect branch, but
      means we have duplicated functions - one for CONFIG_SPU_FS=y and one for
      =m.
      
      This change unifies the spufs syscall path, and provides access to the
      spufs_calls structure through a get/put pair.  At present, the only user
      of the spufs_calls structure is spu_syscalls.c, but this will facilitate
      adding the coredump calls later.
      
      Everyone likes numbers, right?  Here's a before/after comparison with
      CONFIG_SPU_FS=y, doing spu_create(); close(); 64k times.
      
      Before:
      	[jk@cell ~]$ time ./spu_create
      	performing 65536 spu_create calls
      
      	real    0m24.075s
      	user    0m0.146s
      	sys     0m23.925s
      
      After:
      	[jk@cell ~]$ time ./spu_create
      	performing 65536 spu_create calls
      
      	real    0m24.777s
      	user    0m0.141s
      	sys     0m24.631s
      
      So, we're adding around 11us per syscall, at the benefit of having
      only one syscall path.
      Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      98f06978
  2. 15 8月, 2007 1 次提交
  3. 21 7月, 2007 1 次提交
  4. 09 1月, 2006 3 次提交