driver core: memory: semaphore to mutex
Signed-off-by: Daniel Walker <dwalker@mvista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
610ad5064c
commit
da19cbcf71
@@ -208,7 +208,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
|
||||
/*
|
||||
* This doesn't need a lock to do pfn_to_page().
|
||||
* The section can't be removed here because of the
|
||||
* memory_block->state_sem.
|
||||
* memory_block->state_mutex.
|
||||
*/
|
||||
zone = page_zone(pfn_to_page(pfn));
|
||||
pgdat_resize_lock(zone->zone_pgdat, &flags);
|
||||
|
Reference in New Issue
Block a user