Commit f9258540 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix kernel_flag again

From: Christoph Hellwig <hch@lst.de>

Put kernel_flag back to where it used to be, near its comment and its
EXPORT_SYMBOL.
parent fa61a25f
......@@ -124,9 +124,6 @@
(NS_TO_JIFFIES((p)->sleep_avg) * MAX_BONUS / \
MAX_SLEEP_AVG)
/* spinlock debugging needs this, even on !CONFIG_SMP */
spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
#ifdef CONFIG_SMP
#define TIMESLICE_GRANULARITY(p) (MIN_TIMESLICE * \
(1 << (((MAX_BONUS - CURRENT_BONUS(p)) ? : 1) - 1)) * \
......@@ -2859,7 +2856,6 @@ __init int migration_init(void)
#endif
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
/*
* The 'big kernel lock'
*
......@@ -2869,10 +2865,11 @@ __init int migration_init(void)
* been migrated to a proper locking design yet.
*
* Don't use in new code.
*
* Note: spinlock debugging needs this even on !CONFIG_SMP.
*/
spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
EXPORT_SYMBOL(kernel_flag);
#endif
static void kstat_init_cpu(int cpu)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment