linux/arch/tile/mm
Chris Metcalf 51007004f4 arch/tile: use interrupt critical sections less
In general we want to avoid ever touching memory while within an
interrupt critical section, since the page fault path goes through
a different path from the hypervisor when in an interrupt critical
section, and we carefully decided with tilegx that we didn't need
to support this path in the kernel.  (On tilepro we did implement
that path as part of supporting atomic instructions in software.)

In practice we always need to touch the kernel stack, since that's
where we store the interrupt state before releasing the critical
section, but this change cleans up a few things.  The IRQ_ENABLE
macro is split up so that when we want to enable interrupts in a
deferred way (e.g. for cpu_idle or for interrupt return) we can
read the per-cpu enable mask before entering the critical section.
The cache-migration code is changed to use interrupt masking instead
of interrupt critical sections.  And, the interrupt-entry code is
changed so that we defer loading "tp" from per-cpu data until after
we have released the interrupt critical section.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2012-05-25 12:48:20 -04:00
..
elf.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
extable.c arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
fault.c arch/tile: don't enable irqs unconditionally in page fault handler 2012-04-02 12:13:09 -04:00
highmem.c highmem: kill all __kmap_atomic() 2012-03-20 21:48:30 +08:00
homecache.c arch/tile: export the page_home() function. 2012-04-02 12:13:42 -04:00
hugetlbpage.c Fix common misspellings 2011-03-31 11:26:23 -03:00
init.c arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
Makefile arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
migrate_32.S arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
migrate_64.S arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
migrate.h arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
mmap.c arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
pgtable.c arch/tile: fix up locking in pgtable.c slightly 2012-04-02 12:13:22 -04:00