[lkml]   [2003]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Don't refill pcp lists during SWSUSP.
Nigel Cunningham <> wrote:
> +extern unsigned int suspend_task;

Please do:

unsigned int suspend_task;
#define suspend_task 0

so the compiler can remove the few fast-path instructions which you have

> + suspend_task = current->pid;
> +

Zero is a valid PID (the idle task...). It might be clearer to make
suspend_task a task_struct*.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:34    [W:0.113 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site