Skip to content

Commit

Permalink
freezer: remove obsolete comments in __thaw_task()
Browse files Browse the repository at this point in the history
__thaw_task() no longer clears frozen flag since commit a320122
(freezer: make freezing() test freeze conditions in effect instead of TIF_FREEZE).

Reviewed-by: Michal Hocko <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
congwang authored and rafaeljw committed Oct 21, 2014
1 parent 51fae6d commit c05eb32
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kernel/freezer.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ void __thaw_task(struct task_struct *p)
{
unsigned long flags;

/*
* Clear freezing and kick @p if FROZEN. Clearing is guaranteed to
* be visible to @p as waking up implies wmb. Waking up inside
* freezer_lock also prevents wakeups from leaking outside
* refrigerator.
*/
spin_lock_irqsave(&freezer_lock, flags);
if (frozen(p))
wake_up_process(p);
Expand Down

0 comments on commit c05eb32

Please sign in to comment.