Browse Source

[IA64] initialize spinlock pfm_alt_install_check

I applied the penultimate version of the perfmon patch, which didn't have
the initialization of the new spinlock that was added.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Tony Luck 20 years ago
parent
commit
fe12e25ebd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/ia64/kernel/perfmon.c

+ 1 - 1
arch/ia64/kernel/perfmon.c

@@ -497,7 +497,7 @@ typedef struct {
 static pfm_stats_t		pfm_stats[NR_CPUS];
 static pfm_stats_t		pfm_stats[NR_CPUS];
 static pfm_session_t		pfm_sessions;	/* global sessions information */
 static pfm_session_t		pfm_sessions;	/* global sessions information */
 
 
-static spinlock_t pfm_alt_install_check;
+static spinlock_t pfm_alt_install_check = SPIN_LOCK_UNLOCKED;
 static pfm_intr_handler_desc_t  *pfm_alt_intr_handler;
 static pfm_intr_handler_desc_t  *pfm_alt_intr_handler;
 
 
 static struct proc_dir_entry 	*perfmon_dir;
 static struct proc_dir_entry 	*perfmon_dir;