public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* sys_pciconfig_{read,write}
@ 2006-01-09 16:27 Matthew Wilcox
  2006-01-09 23:36 ` Subject: [PATCH] powerpc: remove compat_sys_pciconfig_* Stephen Rothwell
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matthew Wilcox @ 2006-01-09 16:27 UTC (permalink / raw)
  To: linux-arch, linux-pci; +Cc: carlos neira


I bet most people don't even know we have these syscalls.  But they're
built into every arch except X86, and only hooked up on alpha, arm,
ia64, ppc32, sparc and sparc64.

Given the existence of sysfs and the inability of the syscalls to handle
domains, I don't see any point in hooking them up on new architectures.
I suspect they could even be deleted since any software trying them must
fall back to other methods to be portable.

The syscalls also take the BKL, as pointed out by Carlos on kernel janitors.
This is unnecessary as they're already spinlocked at a lower level.

So I propose the following three patches:

1/ New Kconfig symbol CONFIG_PCI_SYSCALLS to be defined by the above
architectures.  Makefile altered accordingly.

2/ Removal of BKL from syscall implementation.

3/ Removal of !CONFIG_PCI pciconfig stubs from alpha, ia64 and sparc64
(we already have cond_syscalls for them).

I don't quite understand why we need
compat_sys_pciconfig_{read,write,iobase} on ppc64.  Can't these just
call the normal versions?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-01-20 12:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-09 16:27 sys_pciconfig_{read,write} Matthew Wilcox
2006-01-09 23:36 ` Subject: [PATCH] powerpc: remove compat_sys_pciconfig_* Stephen Rothwell
2006-01-09 23:37 ` sys_pciconfig_{read,write} Stephen Rothwell
2006-01-20 10:00 ` sys_pciconfig_{read,write} David S. Miller
2006-01-20 12:10   ` sys_pciconfig_{read,write} Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox