Re: [PATCH v4 1/5] getcpu_cache system call: cache CPU number of running thread

From
Linus Torvalds <hidden>
Date
2016-02-27 18:35:31
Also in
lkml
Reply to
Peter Zijlstra, 2016-02-27
On Sat, Feb 27, 2016 at 6:58 AM, Peter Zijlstra [off-list ref] wrote:
Paul's patches have the following structure:

struct thread_local_abi {
        union {
                struct {
                        u32     cpu_id;
                        u32     seq;
                };
                u64 cpu_seq;
        };
        unsigned long post_commit_ip;
};
Please don't do "unsigned long" in ABI structures any more.

Make it u64, and make sure it is 64-bit aligned (which it would be in
this case). Make it so that we don't have to have separate compat
paths.

               Linus
Thread (37 messages) 37 messages, 7 authors, last reply 2016-02-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help