Fix mach-omap2/omap-iommu.c to prevent NULL pointer deref and fix a warning.

Change-Id: Iee7790cd529d8823b8c0606a3e4e614e94df0a77
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
ARM: omap2: Fix compile error on pm34xx.c

Recently, a call to omap_pm_apply_min_bus_tput was added to
pm34xx.c.  This caused the following compile error:
  arch/arm/mach-omap2/pm34xx.c: In function 'omap3_pm_init':
  arch/arm/mach-omap2/pm34xx.c:926: error: implicit declaration of function 'omap_pm_apply_min_bus_tput'

Adding an include of plat/omap-pm.h fixes this.

Change-Id: Ia12054a1fb32ef007ab2470f42e19e190c726ee0
Signed-off-by: Scott Anderson <saa@google.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
ARM: omap2: fiq_debugger: ifdef local_timer_irqs in dump_irqs()

The local_timer_irqs field is surrounded by #ifdef
CONFIG_LOCAL_TIMERS in the irq_cpustat_t structure.  Do the same
for its usage in dump_irqs() so fiq_debugger can compile on
non-SMP systems.

Change-Id: Ie212d39b8c705f6815e00d86569bdb92b0c1e4c1
Signed-off-by: Scott Anderson <saa@google.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP: DMA: Set thread reservation for high-priority channels

Reserve one thread for write and one for read for high-priority
channels. This configuration helps latency critical synchronized
transfers: memory-peripheral and/or peripheral-memory.

Change-Id: Ib8ecf32db126937820b1da04b183568c44143d64
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: John Grossman <johngro@google.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>