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
@@ -368,7 +368,6 @@ static struct platform_driver uml_net_driver = {
|
||||
.name = DRIVER_NAME,
|
||||
},
|
||||
};
|
||||
static int driver_registered;
|
||||
|
||||
static void net_device_release(struct device *dev)
|
||||
{
|
||||
@@ -383,6 +382,12 @@ static void net_device_release(struct device *dev)
|
||||
free_netdev(netdev);
|
||||
}
|
||||
|
||||
/*
|
||||
* Ensures that platform_driver_register is called only once by
|
||||
* eth_configure. Will be set in an initcall.
|
||||
*/
|
||||
static int driver_registered;
|
||||
|
||||
static void eth_configure(int n, void *init, char *mac,
|
||||
struct transport *transport)
|
||||
{
|
||||
|
Reference in New Issue
Block a user