diff options
author | Peter Keilty <peter.keilty@hp.com> | 2005-10-31 16:44:47 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-31 17:36:05 -0500 |
commit | dcc17d1baef3721d1574e5b2f4f2d4607514bcff (patch) | |
tree | 78b19a9b54f57aa010f50201e7639786b0e5f770 /arch/ia64/kernel | |
parent | f2c84c0e84bfa637a7161eac10157cf3b05b4a73 (diff) |
[IA64] Use bitmaps for efficient context allocation/free
Corrects the very inefficent method of finding free context_ids in
get_mmu_context(). Instead of walking the task_list of all processes,
2 bitmaps are used to efficently store and lookup state, inuse and
needs flushing. The entire rid address space is now used before calling
wrap_mmu_context and global tlb flushing.
Special thanks to Ken and Rohit for their review and modifications in
using a bit flushmap.
Signed-off-by: Peter Keilty <peter.keilty@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r-- | arch/ia64/kernel/setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index fc56ca2da358..c9388a92cf4a 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c | |||
@@ -454,6 +454,7 @@ setup_arch (char **cmdline_p) | |||
454 | #endif | 454 | #endif |
455 | 455 | ||
456 | cpu_init(); /* initialize the bootstrap CPU */ | 456 | cpu_init(); /* initialize the bootstrap CPU */ |
457 | mmu_context_init(); /* initialize context_id bitmap */ | ||
457 | 458 | ||
458 | #ifdef CONFIG_ACPI | 459 | #ifdef CONFIG_ACPI |
459 | acpi_boot_init(); | 460 | acpi_boot_init(); |