lkml.org 
[lkml]   [2006]   [Apr]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromKeith Owens <>
SubjectRe: [patch 2.6.17-rc1] Reinstate const in next_thread()
DateMon, 03 Apr 2006 18:40:29 +1000
Andrew Morton (on Mon, 3 Apr 2006 01:33:42 -0700) wrote:
>Keith Owens <kaos@sgi.com> wrote:
>>
>> Before commit 47e65328a7b1cdfc4e3102e50d60faf94ebba7d3, next_thread()
>> took a const task_t.  Reinstate the const qualifier, getting the next
>> thread never changes the current thread.
>> 
>
>Can do, but why?  Does code generation improve?

I have not checked.  The const qualifier on this type of function falls
into the "better safe than sorry" category.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-03 12:37    [from the cache]
©2003-2008