diff options
author | Thomas Gleixner <[email protected]> | 2017-08-28 08:47:41 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-08-29 12:07:25 +0200 |
commit | 38e9e81f4c81c75799b002d5811de7241b307676 (patch) | |
tree | 4af3080b5543221bf460a9f9c9ca266edf11c896 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9a98e7780022aa7cd201eb8a88a4f1d607b73cde (diff) |
x86/gdt: Use bitfields for initialization
The GDT entry related code uses two ways to access entries via
union fields:
- bitfields
- macros which initialize the two 16-bit parts of the entry
by magic shift and mask operations.
Clean it up and only use the bitfields to initialize and access entries.
( The old access patterns were partly done due to GCC optimizing bitfield
accesses in a horrible way - that's mostly fixed these days and clarity
of code in such low level accessors is very important. )
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions