diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 19:43:21 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 19:43:21 -0400 |
| commit | 75b56ec294b074d70f8a676ab02611a3fea76cab (patch) | |
| tree | d5299adb43ac6fc8dcc50c3e438c7f0cdd452b1c /lib | |
| parent | 6d16d6d9bb6f93e6f8506cfb3e91795d6443d54f (diff) | |
| parent | efbe2eee6dc0f179be84292bf269528b3ec365e9 (diff) | |
Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
lockdep: Fix lockdep_no_validate against IRQ states
mutex: Make mutex_destroy() an inline function
plist: Remove the need to supply locks to plist heads
lockup detector: Fix reference to the non-existent CONFIG_DETECT_SOFTLOCKUP option
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 4 | ||||
| -rw-r--r-- | lib/plist.c | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index dd373c8ee943..9c28fa4202f8 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -227,7 +227,7 @@ config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE | |||
| 227 | config DETECT_HUNG_TASK | 227 | config DETECT_HUNG_TASK |
| 228 | bool "Detect Hung Tasks" | 228 | bool "Detect Hung Tasks" |
| 229 | depends on DEBUG_KERNEL | 229 | depends on DEBUG_KERNEL |
| 230 | default DETECT_SOFTLOCKUP | 230 | default LOCKUP_DETECTOR |
| 231 | help | 231 | help |
| 232 | Say Y here to enable the kernel to detect "hung tasks", | 232 | Say Y here to enable the kernel to detect "hung tasks", |
| 233 | which are bugs that cause the task to be stuck in | 233 | which are bugs that cause the task to be stuck in |
| @@ -866,7 +866,7 @@ config BOOT_PRINTK_DELAY | |||
| 866 | system, and then set "lpj=M" before setting "boot_delay=N". | 866 | system, and then set "lpj=M" before setting "boot_delay=N". |
| 867 | NOTE: Using this option may adversely affect SMP systems. | 867 | NOTE: Using this option may adversely affect SMP systems. |
| 868 | I.e., processors other than the first one may not boot up. | 868 | I.e., processors other than the first one may not boot up. |
| 869 | BOOT_PRINTK_DELAY also may cause DETECT_SOFTLOCKUP to detect | 869 | BOOT_PRINTK_DELAY also may cause LOCKUP_DETECTOR to detect |
| 870 | what it believes to be lockup conditions. | 870 | what it believes to be lockup conditions. |
| 871 | 871 | ||
| 872 | config RCU_TORTURE_TEST | 872 | config RCU_TORTURE_TEST |
diff --git a/lib/plist.c b/lib/plist.c index 0ae7e6431726..a0a4da489c22 100644 --- a/lib/plist.c +++ b/lib/plist.c | |||
| @@ -56,11 +56,6 @@ static void plist_check_list(struct list_head *top) | |||
| 56 | 56 | ||
| 57 | static void plist_check_head(struct plist_head *head) | 57 | static void plist_check_head(struct plist_head *head) |
| 58 | { | 58 | { |
| 59 | WARN_ON(head != &test_head && !head->rawlock && !head->spinlock); | ||
| 60 | if (head->rawlock) | ||
| 61 | WARN_ON_SMP(!raw_spin_is_locked(head->rawlock)); | ||
| 62 | if (head->spinlock) | ||
| 63 | WARN_ON_SMP(!spin_is_locked(head->spinlock)); | ||
| 64 | if (!plist_head_empty(head)) | 59 | if (!plist_head_empty(head)) |
| 65 | plist_check_list(&plist_first(head)->prio_list); | 60 | plist_check_list(&plist_first(head)->prio_list); |
| 66 | plist_check_list(&head->node_list); | 61 | plist_check_list(&head->node_list); |
| @@ -180,7 +175,7 @@ static int __init plist_test(void) | |||
| 180 | unsigned int r = local_clock(); | 175 | unsigned int r = local_clock(); |
| 181 | 176 | ||
| 182 | printk(KERN_INFO "start plist test\n"); | 177 | printk(KERN_INFO "start plist test\n"); |
| 183 | plist_head_init(&test_head, NULL); | 178 | plist_head_init(&test_head); |
| 184 | for (i = 0; i < ARRAY_SIZE(test_node); i++) | 179 | for (i = 0; i < ARRAY_SIZE(test_node); i++) |
| 185 | plist_node_init(test_node + i, 0); | 180 | plist_node_init(test_node + i, 0); |
| 186 | 181 | ||
