lkml.org 
[lkml]   [2006]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] simplify update_times (avoid jiffies/jiffies_64 aliasing problem)
From
>>>>> On Thu, 02 Mar 2006 21:45:56 -0800 (PST), "David S. Miller" <davem@davemloft.net> said:

>> I and Ralf talked a bit about the jiffies issue. Making an union
>> containing jiffies and jiffies_64 looks good to avoid such an
>> optimization problem, but it would affect so many existing codes.

davem> Maybe use an anonymous union? That might help...

Do you mean something like this:

union {
struct {
unsigned long pad;
unsigned long jiffies;
};
u64 jiffies_64;
};

Unfortunately a toplevel anonymous union looks not allowed...

---
Atsushi Nemoto
-
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-03-03 17:29    [W:0.101 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site