Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199271
b: refs/heads/master
c: c0d64cb
h: refs/heads/master
i:
  199269: 11c9970
  199267: a0c4e8f
  199263: b67d4d7
v: v3
  • Loading branch information
Len Brown committed May 27, 2010
1 parent e871974 commit 03b8a92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b2c676bf32be91f43215d5874c07c1becaba013
refs/heads/master: c0d64cb031c21f163a0ec15cf10844bcf0ceedcf
5 changes: 4 additions & 1 deletion trunk/drivers/cpuidle/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ EXPORT_SYMBOL_GPL(cpuidle_register_driver);
*/
void cpuidle_unregister_driver(struct cpuidle_driver *drv)
{
if (!drv)
if (drv != cpuidle_curr_driver) {
WARN(1, "invalid cpuidle_unregister_driver(%s)\n",
drv->name);
return;
}

spin_lock(&cpuidle_driver_lock);
cpuidle_curr_driver = NULL;
Expand Down

0 comments on commit 03b8a92

Please sign in to comment.