Gustavo Fernando Padovan
96a331b1d6
removed unused var real_tty on n_tty_ioctl()
...
I noted that the 'struct tty_struct *real_tty' is not used in this
function, so I removed the code about 'real_tty'.
Signed-off-by: Gustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago
Arnd Bergmann
600bf8140c
lcd: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
af96f0103d
ipmi-watchdog: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
b0e54f7c47
ip27-rtc: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
a9c4e8f74b
hw-random: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
48b8188051
hpet: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
742a2fe31b
genrtc: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
89c7de08c5
efirtc: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
080c222647
ds1620: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
7ccef46320
ds1286: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
556889a4ae
briq_panel: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
2861ead38b
apm-emulation: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Arnd Bergmann
a076230134
agp-frontend: BKL pushdown
...
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 years ago
Stephen Rothwell
5ca6a93d80
bkl-removal viotape fixup
...
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
f2b9857eee
Add a bunch of cycle_kernel_lock() calls
...
All of the open() functions which don't need the BKL on their face may
still depend on its acquisition to serialize opens against driver
initialization. So make those functions acquire then release the BKL to be
on the safe side.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
65f37b790b
dsp56k: BKL pushdown
...
Put explicit lock_kernel calls into dsp56k_open().
[Stupid missing label error fixed]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
c0bed680f0
raw: BKL pushdown
...
Put explicit lock_kernel() calls into raw_open(), even though the existing
locking looks adequate.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
b8c71d7ae2
tlckl: BKL pushdown
...
Put explicit lock_kernel calls into tlclk_open()
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
f4943db14f
xilinx icap: BKL pushdown
...
Add explicit lock_kernel() calls to hwicap_open() even though the existing
locking looks adequate.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
f97259e35d
vcs: BKL pushdown
...
Add explicit BKL to vcs_open().
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
d21c95c569
Add "no BKL needed" comments to several drivers
...
This documents the fact that somebody looked at the relevant open()
functions and concluded that, due to their trivial nature, no locking was
needed.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
39d95b9d85
tty: cdev lock_kernel() pushdown
...
Parts of the serial code actually BUG() if we don't do this.
17 years ago
Jonathan Corbet
c43ef17450
snsc: cdev lock_kernel() pushdown
...
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
70ffa16e60
drm: cdev lock_kernel() pushdown
...
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
abedd296e9
lp: cdev lock_kernel() pushdown
...
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
12ead6b098
mbcs: cdev lock_kernel() pushdown
...
This driver would appear to have no internal locking at all.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
2d863e92ec
viotape: cdev lock_kernel pushdown ()
...
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
309c4551c0
misc: cdev lock_kernel() pushdown
...
misc_open() looks fine, but who knows what all of the misc drivers are
doing in their open() functions?
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
1f439647a4
mem: cdev lock_kernel() pushdown
...
It's really hard to tell if this is necessary - lots of weird
magic happens by way of map_devmem()
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Jonathan Corbet
ecc38983f6
ipmi: cdev lock_kernel() pushdown
...
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
17 years ago
Dave Airlie
858a3685bc
drm: only trust core drm ioctls - driver ioctls are a mess.
...
So driver ioctls need a full auditing before we can make this change.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Zhenyu Wang
d3adbc0c58
drm/i915: add support for Intel series 4 chipsets.
...
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Zhenyu Wang
7d15ddf79e
[agp]: fixup chipset flush for new Intel G4x.
...
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Dave Airlie
9bedbcb207
agp: brown paper bag patch - put back two lines that got lost
...
Commit 62c96b9d09
("agp/intel: cleanup
some serious whitespace badness") didn't just fix whitespace. It also
lost two lines.
Noticed by Linus. No more whitespace diffs for me.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago
Dave Airlie
0e480e5fc0
agp: brown paper bag patch - put back the two lines it took out.
...
no more whitespace diffs for me.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Dave Airlie
62c96b9d09
agp/intel: cleanup some serious whitespace badness
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Zhenyu Wang
25ce77abf8
[AGP] intel_agp: Add support for Intel 4 series chipsets
...
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Zhenyu Wang
598d144823
[AGP] intel_agp: extra stolen mem size available for IGD_GM chipset
...
This adds missing stolen memory size detect for IGD_GM, be sure to
detect right size as current X intel driver (2.3.2) which has already
worked out.
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Dave Airlie
21efa2bac9
drm/radeon: add hier-z registers for r300 and r500 chipsets
17 years ago
Alex Deucher
5e35eff13f
drm/radeon: use DSTCACHE_CTLSTAT rather than RB2D_DSTCACHE_CTLSTAT
...
According to the hw guys, you should use DSTCACHE_CTLSTAT to flush
the 2D dst cache rather than RB2D_DSTCACHE_CTLSTAT.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Alex Deucher
5cfb695607
drm/radeon: switch IGP gart to use radeon_write_agp_base()
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Dennis Kasprzyk
7ecabc53a2
drm/radeon: Restore sw interrupt on resume
...
Fixes performance drop after suspend/resume on some systems.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Dave Airlie
70b13d510f
drm/r500: add support for AGP based cards.
...
AGP registers weren't programmed properly for r500 cards.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Roland Scheidegger
9156cf09f5
drm/radeon: fix texture uploads with large 3d textures (bug 13980)
...
Texture uploads could hit the blitter coordinate limit, adjust the texture
offset when uploading the pieces. Make sure to check the end address of the
upload too.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Dave Airlie
c0beb2a723
drm/radeon: add initial r500 support.
...
This contains all the command buffer processing for the r500 cards.
It doesn't yet contain vblank support.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Alex Deucher
5b92c4045e
drm/radeon: init pipe setup in kernel code.
...
This inits the card pipes in the kernel and lets userspace getparam
the correct setup.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Alex Deucher
d396db321b
drm/radeon: fixup radeon_do_engine_reset
...
Cleanup do engine reset for different chip families.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Alex Deucher
259434accc
drm/radeon: fix pixcache and purge/cache flushing registers
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Alex Deucher
d7463eb41d
drm/radeon: write AGP_BASE_2 on chips that support it.
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago
Alex Deucher
45e519052e
drm/radeon: merge IGP chip setup and fixup RS400 vs RS480 support
...
We only support RS480 (AMD based IGP) at the moment not
RS400 (Intel based IGP) ones.
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 years ago