mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
uml: SMP locking commentary
Add some more commentary about various pieces of global data not needing locking. Also got rid of unmap_physmem since that is no longer used. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
3a24ebf0cb
commit
80e39311ff
@@ -22,17 +22,20 @@
|
||||
unsigned long *empty_zero_page = NULL;
|
||||
/* allocated in paging_init and unchanged thereafter */
|
||||
unsigned long *empty_bad_page = NULL;
|
||||
|
||||
/*
|
||||
* Initialized during boot, and readonly for initializing page tables
|
||||
* afterwards
|
||||
*/
|
||||
pgd_t swapper_pg_dir[PTRS_PER_PGD];
|
||||
|
||||
/* Initialized at boot time, and readonly after that */
|
||||
unsigned long long highmem;
|
||||
int kmalloc_ok = 0;
|
||||
|
||||
/* Used during early boot */
|
||||
static unsigned long brk_end;
|
||||
|
||||
void unmap_physmem(void)
|
||||
{
|
||||
os_unmap_memory((void *) brk_end, uml_reserved - brk_end);
|
||||
}
|
||||
|
||||
static void map_cb(void *unused)
|
||||
{
|
||||
map_memory(brk_end, __pa(brk_end), uml_reserved - brk_end, 1, 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user