lkml.org 
[lkml]   [2022]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] timers: Add del_time_free() to be called before freeing timers
On Fri, 8 Apr 2022 14:30:21 -1000
Linus Torvalds <torvalds@linux-foundation.org> wrote:

> On Fri, Apr 8, 2022 at 2:22 PM Steven Rostedt <rostedt@goodmis.org> wrote:
> >
> > We could always use the LSB bit of the function as a "shutdown" flag, where:
>
> While we do that for data pointers, doing it for function pointers is dodgy.
>
> Not all architectures necessarily align code pointers. In fact, I
> think that "-Os" on x86 makes all code alignment go away, and so
> function pointers have no alignment at all.

Hmm, well, I'm not sure it would work for all architectures, but what
about the MSB? Setting it to zero on "shutdown"?

-- Steve

\
 
 \ /
  Last update: 2022-04-09 02:51    [W:0.480 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site