[PATCH 09/15] x86, fpu: add helper xfeature_enabled() instead of test_bit()

2015-09-02 Thread Dave Hansen
From: Dave Hansen We currently use test_bit() in a few places to see if an xfeature is enabled. It ends up being a bit ugly because 'xfeatures_mask' is a u64 and test_bit wants an 'unsigned long' so it requires a cast. The *_bit() functions are also techincally atomic, which we have no need fo

[PATCH 09/15] x86, fpu: add helper xfeature_enabled() instead of test_bit()

2015-08-31 Thread Dave Hansen
From: Dave Hansen We currently use test_bit() in a few places to see if an xfeature is enabled. It ends up being a bit ugly because 'xfeatures_mask' is a u64 and test_bit wants an 'unsigned long' so it requires a cast. The *_bit() functions are also techincally atomic, which we have no need fo