]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoide-cd: convert to ide-atapi facilities
Borislav Petkov [Tue, 6 Jan 2009 16:20:58 +0000 (17:20 +0100)]
ide-cd: convert to ide-atapi facilities

... and remove no longer needed cdrom_start_packet_command and
cdrom_transfer_packet_command.

Tested lightly with ide-cd and ide-floppy.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide-cd: start DMA before sending the actual packet command
Borislav Petkov [Tue, 6 Jan 2009 16:20:57 +0000 (17:20 +0100)]
ide-cd: start DMA before sending the actual packet command

as it is done for all other IDE ATAPI devices.

There should be no functionality change resulting from this patch.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide-cd: wait for DRQ to get set per default
Borislav Petkov [Tue, 6 Jan 2009 16:20:57 +0000 (17:20 +0100)]
ide-cd: wait for DRQ to get set per default

... instead of assuming it is set for accelerated DRQ type devices.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: Fix drive's DWORD-IO handling
Mario Schwalbe [Tue, 6 Jan 2009 16:20:57 +0000 (17:20 +0100)]
ide: Fix drive's DWORD-IO handling

According the documentation, id[ATA_ID_DWORD_IO] is non-zero if
the drive supports dword IO, while the code disables support by
setting IDE_DFLAG_NO_IO_32BIT. In addition, this word has been
reused by the ATA8 specification. This patch fixes both cases.

Signed-off-by: Mario Schwalbe <schwalbe@inf.tu-dresden.de>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
[bart: remove id[ATA_ID_DWORD_IO] check altogether per Sergei's suggestion]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: add port and host iterators
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:56 +0000 (17:20 +0100)]
ide: add port and host iterators

Add ide_port_for_each_dev() / ide_host_for_each_port() iterators
and update IDE code to use them.

While at it:
- s/unit/i/ variable in ide_port_wait_ready(), ide_probe_port(),
  ide_port_tune_devices(), ide_port_init_devices_data(), do_reset1(),
  ide_acpi_set_state() and scc_dma_end()
- s/d/i/ variable in ide_proc_port_register_devices()

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: dynamic allocation of device structures
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:56 +0000 (17:20 +0100)]
ide: dynamic allocation of device structures

Allocate device structures dynamically instead of having them embedded
in ide_hwif_t:

* Remove needless zeroing of port structure from ide_init_port_data().

* Add ide_hwif_t.devices[MAX_DRIVES] (table of pointers to the devices).

* Add ide_port_{alloc,free}_devices() helpers and use them respectively
  in ide_{host,free}_alloc().

* Convert all users of ->drives[] to use ->devices[] instead.

While at it:

* Use drive->dn for the slave device check in scc_pata.c.

As a nice side-effect this patch cuts ~1kB (x86-32) from the resulting
code size:

   text    data     bss     dec     hex filename
  53963    1244     237   55444    d894 drivers/ide/ide-core.o.before
  52981    1244     237   54462    d4be drivers/ide/ide-core.o.after

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: NUMA aware allocation of host and port structures
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:56 +0000 (17:20 +0100)]
ide: NUMA aware allocation of host and port structures

kzalloc() -> kzalloc_node() in ide_host_alloc().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoit821x: use ide_get_pair_dev() helper
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:56 +0000 (17:20 +0100)]
it821x: use ide_get_pair_dev() helper

Because presence of the peer device was not checked in
it821x_set_pio_mode() PIO0 mode was used for taskfile PIO
in single device configurations.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agocmd64x: use ide_get_pair_dev() helper
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:55 +0000 (17:20 +0100)]
cmd64x: use ide_get_pair_dev() helper

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agocmd640: use ide_get_pair_dev() helper
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:55 +0000 (17:20 +0100)]
cmd640: use ide_get_pair_dev() helper

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoamd74xx: use ide_get_pair_dev() helper
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:54 +0000 (17:20 +0100)]
amd74xx: use ide_get_pair_dev() helper

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove ->error method from struct ide_driver
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:54 +0000 (17:20 +0100)]
ide: remove ->error method from struct ide_driver

* Remove (now superfluous) ->error method from struct ide_driver.

* Unexport __ide_error() and make it static.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: unexport ide_wait_not_busy()
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:53 +0000 (17:20 +0100)]
ide: unexport ide_wait_not_busy()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove ide_driver_t typedef
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:53 +0000 (17:20 +0100)]
ide: remove ide_driver_t typedef

While at it:
- s/struct ide_driver_s/struct ide_driver/
- use to_ide_driver() macro in ide-proc.c

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove 'byte' typedef
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:53 +0000 (17:20 +0100)]
ide: remove 'byte' typedef

Just use u8 instead, also s/__u8/u8/ in ide-cd.h while at it.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove ide_pci_enablebit_t typedef
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:52 +0000 (17:20 +0100)]
ide: remove ide_pci_enablebit_t typedef

Remove needless parens while at it.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove local_irq_set() macro
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:52 +0000 (17:20 +0100)]
ide: remove local_irq_set() macro

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove HWIF() macro
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:52 +0000 (17:20 +0100)]
ide: remove HWIF() macro

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: move ide_init_port_data() and friends to ide-probe.c
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:51 +0000 (17:20 +0100)]
ide: move ide_init_port_data() and friends to ide-probe.c

* Move IDE_DEFAULT_MAX_FAILURES to <linux/ide.h>.

* Move ide_cfg_mtx, ide_hwif_to_major[], ide_port_init_devices_data(),
  ide_init_port_data(), ide_init_port_hw() and ide_unregister() to
  ide-probe.c from ide.c.

* Make ide_unregister(), ide_init_port_data(), ide_init_port_hw()
  and ide_cfg_mtx static.

While at it:

* Remove stale ide_init_port_data() documentation and ide_lock extern.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: update ide_unregister() documentation
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:51 +0000 (17:20 +0100)]
ide: update ide_unregister() documentation

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: merge ide_hwgroup_t with ide_hwif_t (v2)
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:50 +0000 (17:20 +0100)]
ide: merge ide_hwgroup_t with ide_hwif_t (v2)

* Merge ide_hwgroup_t with ide_hwif_t.

* Cleanup init_irq() accordingly, then remove no longer needed
  ide_remove_port_from_hwgroup() and ide_ports[].

* Remove now unused HWGROUP() macro.

While at it:

* ide_dump_ata_error() fixups

v2:
* Fix ->quirk_list check in do_ide_request()
  (s/hwif->cur_dev/prev_port->cur_dev).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: use lock bitops for ports serialization (v2)
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:49 +0000 (17:20 +0100)]
ide: use lock bitops for ports serialization (v2)

* Add ->host_busy field to struct ide_host and use it's first bit
  together with lock bitops to provide new ports serialization method.

* Convert core IDE code to use new ide_[un]lock_host() helpers.

  This removes the need for taking hwgroup->lock if host is already
  busy on serialized hosts and makes it possible to merge ide_hwgroup_t
  into ide_hwif_t (done in the later patch).

* Remove no longer needed ide_hwgroup_t.busy and ide_[un]lock_hwgroup().

* Update do_ide_request() documentation.

v2:
* ide_release_lock() should be called inside IDE_HFLAG_SERIALIZE check.

* Add ide_hwif_t.busy flag and ide_[un]lock_port() for serializing
  devices on a port.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove hwgroup->hwif and {drive,hwif}->next
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:49 +0000 (17:20 +0100)]
ide: remove hwgroup->hwif and {drive,hwif}->next

* Add 'int port_count' field to ide_hwgroup_t to keep the track
  of the number of ports in the hwgroup.  Then update init_irq()
  and ide_remove_port_from_hwgroup() to use it.

* Remove no longer needed hwgroup->hwif, {drive,hwif}->next,
  ide_add_drive_to_hwgroup() and ide_remove_drive_from_hwgroup()
  (hwgroup->drive now only denotes the currently active device
   in the hwgroup).

* Update locking documentation in <linux/ide.h>.

While at it:

* Rename ->drive field in ide_hwgroup_t to ->cur_dev.

* Use __func__ in ide_timer_expiry().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: use per-port IRQ handlers
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:48 +0000 (17:20 +0100)]
ide: use per-port IRQ handlers

Use hwif instead of hwgroup as {request,free}_irq()'s cookie,
teach ide_intr() to return early for non-active serialized ports,
modify unexpected_intr() accordingly and then use per-port IRQ
handlers instead of per-hwgroup ones.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: add ->cur_port to struct ide_host and use it for serialized hosts
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:48 +0000 (17:20 +0100)]
ide: add ->cur_port to struct ide_host and use it for serialized hosts

* Pass 'ide_hwif_t *' instead of 'ide_hwgroup_t *' to unexpected_intr().

* Cache pointer to the port currently being serviced in ->cur_port
  and use it instead of hwif->hwgroup on serialized hosts.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: fix setting nIEN on idle devices
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:47 +0000 (17:20 +0100)]
ide: fix setting nIEN on idle devices

Fix do_ide_request() to operate on previous device / port instead of
the current one.  The original code was wrong since at least Feb 2002
(2.4.0 timeframe).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: fix LOCKDEP warning
Bartlomiej Zolnierkiewicz [Tue, 6 Jan 2009 16:20:47 +0000 (17:20 +0100)]
ide: fix LOCKDEP warning

commit 295f00042aaf6b553b5f37348f89bab463d4a469 ("ide: don't execute
the next queued command from the hard-IRQ context") overlooked that
ide_do_drive_cmd() (used for REQUEST SENSE command handling) may still
invoke do_ide_request() (->request_fn) in the hard-IRQ context through
blk_start_queueing().  This resulted in a LOCKDEP warning after commit
b599bc7a1199419e122cb2e9ec6b0fa2cfbbc17b ("ide: use per-device request
queue locks (v2)").

Since calling blk_start_queuing() in ide_do_drive_cmd() doesn't make
much sense as the port is already marked as busy (so the execution of
the new command will be deferred anyway) then just remove it fixing
LOCKDEP warning and saving some CPU cycles at the same time.

Reported-and-tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Grissiom <chaos.proton@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years ago[SCSI] fc transport: restore missing dev_loss_tmo callback to LLDD
James Smart [Mon, 5 Jan 2009 17:14:18 +0000 (12:14 -0500)]
[SCSI] fc transport: restore missing dev_loss_tmo callback to LLDD

When we reworked the transport for the rport lifetimes, in cases where the
rport was reused as a container for tgt id bindings, we inadvertantly
removed the callback to the driver indicating that dev_loss_tmo had fired.

This patch restores that functionality.

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years agoMerge branch 'topic/asoc' into for-linus
Takashi Iwai [Tue, 6 Jan 2009 15:33:52 +0000 (16:33 +0100)]
Merge branch 'topic/asoc' into for-linus

17 years ago[IA64] fix typo in cpumask_of_pcibus()
Ingo Molnar [Tue, 6 Jan 2009 15:19:22 +0000 (16:19 +0100)]
[IA64] fix typo in cpumask_of_pcibus()

Impact: build fix

Fujita Tomonori reported:

 drivers/pci/probe.c: In function 'pci_bus_show_cpuaffinity':
 drivers/pci/probe.c:56: error: implicit declaration of function 'cpumask_from_node'
 drivers/pci/probe.c:56: warning: pointer/integer type mismatch in conditional expression
 make[3]: *** [drivers/pci/probe.o] Error 1
 make[2]: *** [drivers/pci] Error 2

FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoBtrfs: don't change file extent's ram_bytes in btrfs_drop_extents
Yan Zheng [Tue, 6 Jan 2009 14:58:02 +0000 (09:58 -0500)]
Btrfs: don't change file extent's ram_bytes in btrfs_drop_extents

btrfs_drop_extents doesn't change file extent's ram_bytes
in the case of booked extent. To be consistent, we should
also not change ram_bytes when truncating existing extent.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
17 years agoBtrfs: Use btrfs_join_transaction to avoid deadlocks during snapshot creation
Yan Zheng [Tue, 6 Jan 2009 14:58:06 +0000 (09:58 -0500)]
Btrfs: Use btrfs_join_transaction to avoid deadlocks during snapshot creation

Snapshot creation happens at a specific time during transaction commit.  We
need to make sure the code called by snapshot creation doesn't wait
for the running transaction to commit.

This changes btrfs_delete_inode and finish_pending_snaps to use
btrfs_join_transaction instead of btrfs_start_transaction to avoid deadlocks.

It would be better if btrfs_delete_inode didn't use the join, but the
call path that triggers it is:

btrfs_commit_transaction->create_pending_snapshots->
create_pending_snapshot->btrfs_lookup_dentry->
fixup_tree_root_location->btrfs_read_fs_root->
btrfs_read_fs_root_no_name->btrfs_orphan_cleanup->iput

This will be fixed in a later patch by moving the orphan cleanup to the
cleaner thread.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
17 years agoBtrfs: drop remaining LINUX_KERNEL_VERSION checks and compat code
Chris Mason [Tue, 6 Jan 2009 14:38:55 +0000 (09:38 -0500)]
Btrfs: drop remaining LINUX_KERNEL_VERSION checks and compat code

Signed-off-by: Chris Mason <chris.mason@oracle.com>
17 years agoASoC: Fix SND_SOC_ALL_CODECS handling of dual SPI and I2C control buses
Mark Brown [Sat, 3 Jan 2009 10:24:41 +0000 (11:24 +0100)]
ASoC: Fix SND_SOC_ALL_CODECS handling of dual SPI and I2C control buses

For codecs that have both SPI and I2C support we need to ensure that we
don't try to make the codec driver built in when I2C is modular since
that won't link.  Do this by creating a helper variable which uses
conditional defaults to pick up the correct value for all combinations.

We don't need to do anything special for I2C-only codecs since a
conditional select passes on the full value for a tristate.

Reported-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
17 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs...
Chris Mason [Tue, 6 Jan 2009 14:17:51 +0000 (09:17 -0500)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable

17 years agoavr32: Remove DMATEST from defconfigs
Ben Nizette [Thu, 1 Jan 2009 08:22:21 +0000 (19:22 +1100)]
avr32: Remove DMATEST from defconfigs

In the defconfigs for ATNGW100 and ATSTK100[236] the DMA Test driver is
compiled as a module.  This means systems built with *_defconfig +
CONFIG_MODULES=n are unusable as the 3 dma test channels monopolise the
CPU.

I 'spose Haavard uses this module a lot but IMO it isn't really
something needed on all eval boards by default.

Signed-off-by: Ben Nizette <bn@niasdigital.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
17 years agox86, ia64: remove duplicated swiotlb code
FUJITA Tomonori [Mon, 5 Jan 2009 14:59:03 +0000 (23:59 +0900)]
x86, ia64: remove duplicated swiotlb code

This adds swiotlb_map_page and swiotlb_unmap_page to lib/swiotlb.c and
remove IA64 and X86's swiotlb_map_page and swiotlb_unmap_page.

This also removes unnecessary swiotlb_map_single, swiotlb_map_single_attrs,
swiotlb_unmap_single and swiotlb_unmap_single_attrs.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, ia64: convert to use generic dma_map_ops struct
FUJITA Tomonori [Mon, 5 Jan 2009 14:59:02 +0000 (23:59 +0900)]
x86, ia64: convert to use generic dma_map_ops struct

This converts X86 and IA64 to use include/linux/dma-mapping.h.

It's a bit large but pretty boring. The major change for X86 is
converting 'int dir' to 'enum dma_data_direction dir' in DMA mapping
operations. The major changes for IA64 is using map_page and
unmap_page instead of map_single and unmap_single.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agogeneric: add common struct for dma map operations
FUJITA Tomonori [Mon, 5 Jan 2009 14:59:01 +0000 (23:59 +0900)]
generic: add common struct for dma map operations

This adds struct dma_map_ops include/linux/dma-mapping.h, which, is
used to handle multiple sets of dma mapping API.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: remove map_single and unmap_single in struct dma_mapping_ops
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:28 +0000 (23:47 +0900)]
x86: remove map_single and unmap_single in struct dma_mapping_ops

This patch converts dma_map_single and dma_unmap_single to use
map_page and unmap_page respectively and removes unnecessary
map_single and unmap_single in struct dma_mapping_ops.

This leaves intel-iommu's dma_map_single and dma_unmap_single since
IA64 uses them. They will be removed after the unification.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, pci-nommu: add map_page
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:27 +0000 (23:47 +0900)]
x86, pci-nommu: add map_page

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

We will remove map_single hook in the last patch in this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agointel-iommu: add map_page and unmap_page
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:26 +0000 (23:47 +0900)]
intel-iommu: add map_page and unmap_page

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

This uses a temporary workaround, ifdef X86_64 to avoid IA64
build. The workaround will be removed after the unification. Well,
changing x86's struct dma_mapping_ops could break IA64. It's just
wrong. It's one of problems that this patchset fixes.

We will remove map_single and unmap_single hooks in the last patch in
this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, AMD IOMMU: add map_page and unmap_page
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:25 +0000 (23:47 +0900)]
x86, AMD IOMMU: add map_page and unmap_page

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

We will remove map_single and unmap_single hooks in the last patch in
this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, calgary: add map_page and unmap_page
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:24 +0000 (23:47 +0900)]
x86, calgary: add map_page and unmap_page

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

We will remove map_single and unmap_single hooks in the last patch in
this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, gart: add map_page and unmap_page
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:23 +0000 (23:47 +0900)]
x86, gart: add map_page and unmap_page

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

We will remove map_single and unmap_single hooks in the last patch in
this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86, swiotlb: add map_page and unmap_page
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:22 +0000 (23:47 +0900)]
x86, swiotlb: add map_page and unmap_page

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

This is sorta temporary workaround. We will move them to lib/swiotlb.c
to enable x86's swiotlb code to directly use them.

We will remove map_single and unmap_single hooks in the last patch in
this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: add map_page and unmap_page to struct dma_mapping_ops
FUJITA Tomonori [Mon, 5 Jan 2009 14:47:21 +0000 (23:47 +0900)]
x86: add map_page and unmap_page to struct dma_mapping_ops

This patch adds map_page and unmap_page to struct dma_mapping_ops.

This is a preparation of struct dma_mapping_ops unification. We use
map_page and unmap_page instead of map_single and unmap_single.

We will remove map_single and unmap_single hooks in the last patch in
this patchset.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agomake sba DMA mapping functions static
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:18 +0000 (23:36 +0900)]
make sba DMA mapping functions static

Now we don't need to export these DMA mapping functions.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoremove hwsw_dma_ops
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:17 +0000 (23:36 +0900)]
remove hwsw_dma_ops

This removes remove hwsw_dma_ops (and hwsw_*
functions). hwsw_dma_get_ops can select swiotlb_dma_ops and
sba_dma_ops appropriately.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd dma_get_ops to struct ia64_machine_vector
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:16 +0000 (23:36 +0900)]
add dma_get_ops to struct ia64_machine_vector

This adds dma_get_ops hook to struct ia64_machine_vector. We use
dma_get_ops() in arch/ia64/kernel/dma-mapping.c, which simply returns
the global dma_ops. This is for removing hwsw_dma_ops.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agomake sn DMA mapping functions static
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:15 +0000 (23:36 +0900)]
make sn DMA mapping functions static

Now we don't need to export sn DMA mapping functions.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoremove dma operations in struct ia64_machine_vector
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:14 +0000 (23:36 +0900)]
remove dma operations in struct ia64_machine_vector

We don't need dma operation hooks in struct ia64_machine_vector
now. This also removes unused ia64_mv_dma_* typedefs.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoconvert the DMA API to use dma_ops
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:13 +0000 (23:36 +0900)]
convert the DMA API to use dma_ops

This writes asm/dma-mapping.h to convert the DMA API to use dma_ops.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoset up dma_ops appropriately
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:12 +0000 (23:36 +0900)]
set up dma_ops appropriately

This patch introduces a global pointer, dma_ops, which points to an
appropriate dma_mapping_ops that the kernel should use. This is a
common way to handle multiple dma_mapping_ops (X86, POWER, and SPARC).

dma_ops is set in platform_dma_init. We also set it by hand where
machvec_init is callev via subsys_initcall.

- IA64_DIG_VTD uses vtd_dma_ops.
- IA64_HP_ZX1 uses sba_dma_ops.
- IA64_HP_ZX1_SWIOTLB uses hwsw_dma_ops.
- IA64_SGI_SN2 uses sn_dma_ops.
- The rest use swiotlb_dma_ops.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd dma_mapping_ops for SWIOTLB
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:11 +0000 (23:36 +0900)]
add dma_mapping_ops for SWIOTLB

There is already dma_mapping_ops for SWIOTLB but there are some
missing hooks.

This is for IA64_DIG_VTD, IA64_HP_ZX1_SWIOTLB, IA64_SGI_UV,
IA64_HP_SIM, IA64_XEN_GUEST and IA64_GENERIC.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd dma_mapping_ops for SGI Altix
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:10 +0000 (23:36 +0900)]
add dma_mapping_ops for SGI Altix

This is for IA64_SGI_SN2.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd dma_mapping_ops for intel-iommu
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:09 +0000 (23:36 +0900)]
add dma_mapping_ops for intel-iommu

This is for IA64_DIG_VTD.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd dma_mapping_ops for SWIOTLB and SBA IOMMU
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:08 +0000 (23:36 +0900)]
add dma_mapping_ops for SWIOTLB and SBA IOMMU

This is for IA64_HP_ZX1_SWIOTLB.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd dma_mapping_ops for SBA IOMMU
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:07 +0000 (23:36 +0900)]
add dma_mapping_ops for SBA IOMMU

This is for IA64_HP_ZX1.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoadd map/unmap_single_attr and map/unmap_sg_attr to struct dma_mapping_ops
FUJITA Tomonori [Mon, 5 Jan 2009 14:36:06 +0000 (23:36 +0900)]
add map/unmap_single_attr and map/unmap_sg_attr to struct dma_mapping_ops

This adds map/unmap_single_attr and map/unmap_sg_attr to struct
dma_mapping_ops. This enables us to move the dma operations in struct
ia64_machine_vector to struct dma_mapping_ops.

Note that we will remove map/unmap_sg and map/umap_single.

This is a preparation of struct dma_mapping_ops unification.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: remove duplicated #include's
Huang Weiyi [Mon, 5 Jan 2009 22:58:39 +0000 (06:58 +0800)]
x86: remove duplicated #include's

Removed duplicated #include's in:

  arch/x86/kernel/mpparse.c
  arch/x86/kernel/nmi.c

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: fix x86_32 builds for summit and es7000 arch's
Mike Travis [Tue, 6 Jan 2009 01:09:41 +0000 (17:09 -0800)]
x86: fix x86_32 builds for summit and es7000 arch's

Fix the following build errors reported by Yinghai Lu:

| In file included from arch/x86/mach-generic/summit.c:16:
| tip/linux-2.6/arch/x86/include/asm/summit/apic.h:
| In function 'cpu_mask_to_apicid_and':
| tip/linux-2.6/arch/x86/include/asm/summit/apic.h:179:
| error: 'GFP_ATOMIC' undeclared (first use in this function)

Reported-by: Yinghai Lu <Yinghai.Lu@Sun.COM>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: k8 numa register active regions later
Yinghai Lu [Tue, 6 Jan 2009 02:39:01 +0000 (18:39 -0800)]
x86: k8 numa register active regions later

Impact: cleanup

don't register early, so we don't need to clear actived regions if it fail
to get node hash shift or wild set in nb config.

also remove nodeids array that is not needed

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoarch/avr32: Eliminate NULL test and memset after alloc_bootmem
Julia Lawall [Sun, 23 Nov 2008 10:46:58 +0000 (11:46 +0100)]
arch/avr32: Eliminate NULL test and memset after alloc_bootmem

As noted by Akinobu Mita in patch b1fceac2b9e04d278316b2faddf276015fc06e3b,
alloc_bootmem and related functions never return NULL and always return a
zeroed region of memory.  Thus a NULL test or memset after calls to these
functions is unnecessary.

This was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression E;
statement S;
@@

E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\|alloc_bootmem_node\|alloc_bootmem_low_pages_node\|alloc_bootmem_pages_node\)(...)
... when != E
(
- BUG_ON (E == NULL);
|
- if (E == NULL) S
)

@@
expression E,E1;
@@

E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\|alloc_bootmem_node\|alloc_bootmem_low_pages_node\|alloc_bootmem_pages_node\)(...)
... when != E
- memset(E,0,E1);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
17 years agotrivial: chack -> check typo fix in main Makefile
Anisse Astier [Tue, 6 Jan 2009 10:32:22 +0000 (11:32 +0100)]
trivial: chack -> check typo fix in main Makefile

Trivial one letter spelling in main Makefile

Signed-off-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Add a space (and a comma) to a printk in 8250 driver
Paul Bolle [Tue, 30 Dec 2008 13:06:43 +0000 (14:06 +0100)]
trivial: Add a space (and a comma) to a printk in 8250 driver

Commit d87a6d9 ("drivers/serial/: remove CVS keywords") removed one
space too many in the printk in serial8250_init(). Put it back in (and
add a comma for clarity).

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in docs for ncr53c8xx/sym53c8xx
Nick Andrew [Sat, 3 Jan 2009 08:00:37 +0000 (19:00 +1100)]
trivial: Fix misspelling of "firmware" in docs for ncr53c8xx/sym53c8xx

Fix misspelling of "firmware" in docs for ncr53c8xx/sym53c8xx

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in powerpc Makefile
Nick Andrew [Sat, 3 Jan 2009 07:59:37 +0000 (18:59 +1100)]
trivial: Fix misspelling of "firmware" in powerpc Makefile

Fix misspelling of "firmware" in powerpc Makefile

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in usb.c
Nick Andrew [Sat, 3 Jan 2009 07:58:37 +0000 (18:58 +1100)]
trivial: Fix misspelling of "firmware" in usb.c

Fix misspelling of "firmware" in usb.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in qla1280.c
Nick Andrew [Sat, 3 Jan 2009 07:57:37 +0000 (18:57 +1100)]
trivial: Fix misspelling of "firmware" in qla1280.c

Fix misspelling of "firmware" in qla1280.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in a100u2w.c
Nick Andrew [Sat, 3 Jan 2009 07:56:38 +0000 (18:56 +1100)]
trivial: Fix misspelling of "firmware" in a100u2w.c

Fix misspelling of "firmware" in a100u2w.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in megaraid.c
Nick Andrew [Sat, 3 Jan 2009 07:55:39 +0000 (18:55 +1100)]
trivial: Fix misspelling of "firmware" in megaraid.c

Fix misspelling of "firmware" in megaraid.c

Fixed "firmware", "ownership" and grammar in the same comment.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in ql4_mbx.c
Nick Andrew [Sat, 3 Jan 2009 07:54:39 +0000 (18:54 +1100)]
trivial: Fix misspelling of "firmware" in ql4_mbx.c

Fix misspelling of "firmware" in ql4_mbx.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in acpi_memhotplug.c
Nick Andrew [Sat, 3 Jan 2009 07:53:39 +0000 (18:53 +1100)]
trivial: Fix misspelling of "firmware" in acpi_memhotplug.c

Fix misspelling of "firmware" in acpi_memhotplug.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in ipw2100.c
Nick Andrew [Sat, 3 Jan 2009 07:52:40 +0000 (18:52 +1100)]
trivial: Fix misspelling of "firmware" in ipw2100.c

Fix misspelling of "firmware" in ipw2100.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelling of "firmware" in atmel.c
Nick Andrew [Sat, 3 Jan 2009 07:51:33 +0000 (18:51 +1100)]
trivial: Fix misspelling of "firmware" in atmel.c

Fix misspelling of "firmware" in atmel.c

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix misspelled firmware in Kconfig
Nick Andrew [Sat, 3 Jan 2009 07:50:34 +0000 (18:50 +1100)]
trivial: Fix misspelled firmware in Kconfig

Fix misspelled firmware in Kconfig

It's spelled "firmware".

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: fix an -> a typos in documentation and comments
Frederik Schwarzer [Mon, 29 Dec 2008 21:14:56 +0000 (22:14 +0100)]
trivial: fix an -> a typos in documentation and comments

It is always "an" if there is a vowel _spoken_ (not written).
So it is:
"an hour" (spoken vowel)
but
"a uniform" (spoken 'j')

Signed-off-by: Frederik Schwarzer <schwarzerf@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: fix then -> than typos in comments and documentation
Frederik Schwarzer [Thu, 16 Oct 2008 17:02:37 +0000 (19:02 +0200)]
trivial: fix then -> than typos in comments and documentation

- (better, more, bigger ...) then -> (...) than

Signed-off-by: Frederik Schwarzer <schwarzerf@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: update Jesper Juhl CREDITS entry with new email
Jesper Juhl [Tue, 23 Dec 2008 09:07:39 +0000 (10:07 +0100)]
trivial: update Jesper Juhl CREDITS entry with new email

Old email no longer exists, this updates CREDITS with my new one.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: fix singal -> signal typo
Frederik Schwarzer [Mon, 22 Dec 2008 23:54:00 +0000 (00:54 +0100)]
trivial: fix singal -> signal typo

Typo fix.

Signed-off-by: Frederik Schwarzer <schwarzerf@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Fix incorrect use of "loose" in event.c
Nick Andrew [Fri, 5 Dec 2008 03:08:02 +0000 (14:08 +1100)]
trivial: Fix incorrect use of "loose" in event.c

Fix incorrect use of loose in event.c It should be
'lose', not 'loose'.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: printk: fix indentation of new_text_line declaration
Jiri Kosina [Thu, 4 Dec 2008 11:39:49 +0000 (12:39 +0100)]
trivial: printk: fix indentation of new_text_line declaration

Remove bogus indentation of new_text_line declaration introduced in
commit ac60ad741.

Acked-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: rtc-stk17ta8: fix sparse warning
Hannes Eder [Fri, 28 Nov 2008 16:11:47 +0000 (17:11 +0100)]
trivial: rtc-stk17ta8: fix sparse warning

Fix this sparse warning:

  drivers/rtc/rtc-stk17ta8.c:403:2: warning: returning void-valued expression

Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: rtc-ds1511: fix sparse warning
Hannes Eder [Sun, 30 Nov 2008 13:05:45 +0000 (14:05 +0100)]
trivial: rtc-ds1511: fix sparse warning

Fix this sparse warning:

  drivers/rtc/rtc-ds1511.c:634:2: warning: returning void-valued expression

Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: add missing printk loglevel in start_kernel
Ron Lee [Wed, 26 Nov 2008 16:01:57 +0000 (02:31 +1030)]
trivial: add missing printk loglevel in start_kernel

Add missing printk loglevel in start_kernel

Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: radix-tree: document wrap-around issue of radix_tree_next_hole()
Wu Fengguang [Thu, 27 Nov 2008 10:42:22 +0000 (11:42 +0100)]
trivial: radix-tree: document wrap-around issue of radix_tree_next_hole()

And some 80-line cleanups.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agotrivial: Update MAINTAINERS entry
Jiri Kosina [Fri, 14 Nov 2008 10:55:03 +0000 (11:55 +0100)]
trivial: Update MAINTAINERS entry

I am taking over the trivial patch monkey tree from Jesper, as
he doesn't have time for it any more.

Acked-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agosched: fix section mismatch
Li Zefan [Tue, 6 Jan 2009 09:40:36 +0000 (17:40 +0800)]
sched: fix section mismatch

init_rootdomain() calls alloc_bootmem_cpumask_var() at system boot,
so does cpupri_init().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agosched: fix double kfree in failure path
Li Zefan [Tue, 6 Jan 2009 09:39:06 +0000 (17:39 +0800)]
sched: fix double kfree in failure path

It's not the responsibility of init_rootdomain() to free root_domain
allocated by alloc_rootdomain().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoASoC: Use snd_soc_dapm_nc_pin() in at91sam9g20ek
Mark Brown [Tue, 6 Jan 2009 09:52:18 +0000 (09:52 +0000)]
ASoC: Use snd_soc_dapm_nc_pin() in at91sam9g20ek

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
17 years agoInput: i8042 - add Dell Vostro 1510 to nomux list
Jiri Kosina [Tue, 6 Jan 2009 09:35:45 +0000 (01:35 -0800)]
Input: i8042 - add Dell Vostro 1510 to nomux list

Dell Vostro needs 'nomux' quirk, otherwise the touchpad misbehaves.

Reported-by: Robert Kiwanuka <robert.kiwanuka@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
17 years agoMerge branches 'tracing/kmemtrace2' and 'tracing/ftrace' into tracing/urgent
Ingo Molnar [Tue, 6 Jan 2009 09:18:43 +0000 (10:18 +0100)]
Merge branches 'tracing/kmemtrace2' and 'tracing/ftrace' into tracing/urgent

17 years agokmemtrace: add kmemtrace_init()
Ingo Molnar [Tue, 6 Jan 2009 09:16:35 +0000 (10:16 +0100)]
kmemtrace: add kmemtrace_init()

Impact: build fix

leftover from the relayfs version - but we want to keep it because
this call is the earliest opportunity when we can start kmemtrace
tracing. (after kmem_cache_init()).

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoMerge branch 'linus' into tracing/kmemtrace2
Ingo Molnar [Tue, 6 Jan 2009 08:53:05 +0000 (09:53 +0100)]
Merge branch 'linus' into tracing/kmemtrace2

17 years agoMerge branch 'topic/asoc' into for-linus
Takashi Iwai [Tue, 6 Jan 2009 08:48:51 +0000 (09:48 +0100)]
Merge branch 'topic/asoc' into for-linus

17 years agokmemtrace: Remove the relay version of kmemtrace
Eduard - Gabriel Munteanu [Mon, 5 Jan 2009 20:09:58 +0000 (22:09 +0200)]
kmemtrace: Remove the relay version of kmemtrace

Impact: cleanup

kmemtrace now uses ftrace. This patch removes the relay version.

Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoMerge branches 'sched/clock', 'sched/cleanups' and 'linus' into sched/urgent
Ingo Molnar [Tue, 6 Jan 2009 08:33:57 +0000 (09:33 +0100)]
Merge branches 'sched/clock', 'sched/cleanups' and 'linus' into sched/urgent

17 years agoMerge branches 'core/futexes', 'core/locking', 'core/rcu' and 'linus' into core/urgent
Ingo Molnar [Tue, 6 Jan 2009 08:32:11 +0000 (09:32 +0100)]
Merge branches 'core/futexes', 'core/locking', 'core/rcu' and 'linus' into core/urgent

17 years agocpumask: use work_on_cpu in acpi-cpufreq.c for read_measured_perf_ctrs
Mike Travis [Sun, 4 Jan 2009 13:18:10 +0000 (05:18 -0800)]
cpumask: use work_on_cpu in acpi-cpufreq.c for read_measured_perf_ctrs

Impact: use new cpumask API to reduce stack usage

Replace the saving of current->cpus_allowed and set_cpus_allowed_ptr() with
a work_on_cpu function for read_measured_perf_ctrs().

Basically splits off the work function from get_measured_perf which is
run on the designated cpu.  Moves definition of struct perf_cur out of
function local namespace, and is used as the work function argument.
References in get_measured_perf use values in the perf_cur struct.

Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>