Skip to contentSkip to conversation

use dynamic spinlock initialisation in

PATCH Matt Mackall 1 participant 1 message Apr 18, 2006 Kernel janitors

lore
Share & tools
lore
#0 lore raw

Review

Quoted 8 lines · Eric Sesterhenn

static int __init rand_initialize(void)
{

(quoted diff) +3 -0
+	spin_lock_init(&input_pool.lock);
+	spin_lock_init(&blocking_pool.lock);
+	spin_lock_init(&nonblocking_pool.lock);
 	init_std_data(&input_pool);
 	init_std_data(&blocking_pool);
 	init_std_data(&nonblocking_pool);

Something about this hunk suggests a better way to do this.

Signature · 1 line
Mathematics is the supreme nostalgia of our time.

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors