Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54630
b: refs/heads/master
c: 2828703
h: refs/heads/master
v: v3
  • Loading branch information
Venki Pallipadi authored and Linus Torvalds committed May 8, 2007
1 parent 99ddc2c commit 5baefba
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 6e453a67510a17f01b63835f18569e8c3939a38c
refs/heads/master: 28287033e12463c8ff89f1ea8038783d0360391c
2 changes: 1 addition & 1 deletion trunk/drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static inline void dbs_timer_init(struct cpu_dbs_info_s *dbs_info)
dbs_info->enable = 1;
ondemand_powersave_bias_init();
dbs_info->sample_type = DBS_NORMAL_SAMPLE;
INIT_DELAYED_WORK(&dbs_info->work, do_dbs_timer);
INIT_DELAYED_WORK_DEFERRABLE(&dbs_info->work, do_dbs_timer);
queue_delayed_work_on(dbs_info->cpu, kondemand_wq, &dbs_info->work,
delay);
}
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ struct execute_work {
init_timer(&(_work)->timer); \
} while (0)

#define INIT_DELAYED_WORK_DEFERRABLE(_work, _func) \
do { \
INIT_WORK(&(_work)->work, (_func)); \
init_timer_deferrable(&(_work)->timer); \
} while (0)

/**
* work_pending - Find out whether a work item is currently pending
* @work: The work item in question
Expand Down

0 comments on commit 5baefba

Please sign in to comment.