aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@swan.cs.unc.edu>2007-02-19 20:00:46 -0500
committerBjoern Brandenburg <bbb@swan.cs.unc.edu>2007-02-19 20:00:46 -0500
commitd8a908c44424ddf913a02a4d39d3da23f6756b01 (patch)
tree34289f87834bedc66ef9315bbe2bdbe20d6c0d4f /kernel
parentc124b7ef72a4184397e68fef66887ecdc65549a4 (diff)
remove second, unneeded parameter of queue_lock_init()
Queue locks in LTMUS always must allow for NR_CPUS processes. Therefore, it is redundant to specify that int queue_lock_init().
Diffstat (limited to 'kernel')
-rw-r--r--kernel/litmus.c2
-rw-r--r--kernel/sched_trace.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/litmus.c b/kernel/litmus.c
index 04a28159e1..7dfafa88b5 100644
--- a/kernel/litmus.c
+++ b/kernel/litmus.c
@@ -411,7 +411,7 @@ static int boot_sched_setup(char *plugin_name)
411 * mode change lock is used to enforce single mode change 411 * mode change lock is used to enforce single mode change
412 * operation. 412 * operation.
413 */ 413 */
414 queue_lock_init(&mode_change_lock, NR_CPUS); 414 queue_lock_init(&mode_change_lock);
415 415
416 printk("Starting LITMUS kernel\n"); 416 printk("Starting LITMUS kernel\n");
417 417
diff --git a/kernel/sched_trace.c b/kernel/sched_trace.c
index 8ca7fbc5a4..fa7bad33a5 100644
--- a/kernel/sched_trace.c
+++ b/kernel/sched_trace.c
@@ -465,7 +465,7 @@ static int __init init_sched_trace(void)
465 int error1 = 0, error2 = 0; 465 int error1 = 0, error2 = 0;
466 466
467 printk("Initializing scheduler trace device\n"); 467 printk("Initializing scheduler trace device\n");
468 queue_lock_init(&log_buffer_lock, NR_CPUS); 468 queue_lock_init(&log_buffer_lock);
469 init_buffers(); 469 init_buffers();
470 470
471 error1 = register_buffer_dev("schedtrace", &trace_fops, 471 error1 = register_buffer_dev("schedtrace", &trace_fops,