Skip to content

Commit

Permalink
[IA64] Initialize some spinlocks
Browse files Browse the repository at this point in the history
Some IA64 spinlocks are not being initialized, make it so.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Keith Owens authored and Tony Luck committed Aug 16, 2005
1 parent f7001e8 commit 71841b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/ia64/kernel/salinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ struct salinfo_data {

static struct salinfo_data salinfo_data[ARRAY_SIZE(salinfo_log_name)];

static spinlock_t data_lock, data_saved_lock;
static DEFINE_SPINLOCK(data_lock);
static DEFINE_SPINLOCK(data_saved_lock);

/** salinfo_platform_oemdata - optional callback to decode oemdata from an error
* record.
Expand Down
1 change: 1 addition & 0 deletions arch/ia64/sn/kernel/io_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ static void sn_fixup_ionodes(void)
continue;
}

spin_lock_init(&sn_flush_device_list->sfdl_flush_lock);
hubdev->hdi_flush_nasid_list.widget_p[widget] =
sn_flush_device_list;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/serial/sn_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@ int __init sn_serial_console_early_setup(void)
return -1;

sal_console_port.sc_ops = &poll_ops;
spin_lock_init(&sal_console_port.sc_port.lock);
early_sn_setup(); /* Find SAL entry points */
register_console(&sal_console_early);

Expand Down

0 comments on commit 71841b8

Please sign in to comment.