diff options
author | Oleg Nesterov <[email protected]> | 2015-03-10 07:06:25 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-03-10 07:14:31 +0100 |
commit | 1d23c4518b1f3a03c278f23333149245c178d2a6 (patch) | |
tree | b21290a5adff68cb50dc85f9e208c7c0f32f28f4 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | e7f180dcd8ab48f18b20d7e8a7e9b39192bdf8e0 (diff) |
x86/fpu: Factor out memset(xstate, 0) in fpu_finit() paths
fx_finit() has two users but only fpu_finit() needs to clear
xstate, alloc_bootmem_align() in setup_init_fpu_buf() returns
zero-filled memory.
And note that both memset()'s look confusing. Yes, offsetof() is
0 for ->fxsave or ->fsave, but it would be cleaner to turn
them into a single memset() which zeroes fpu->state.
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Tavis Ormandy <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions