[CRIU] [PATCH 3/9] x86: cpu -- Use bitwise operator for option check

Dmitry Safonov 0x7f454c46 at gmail.com
Mon Aug 20 15:26:16 MSK 2018


2018-08-07 17:35 GMT+01:00 Cyrill Gorcunov <gorcunov at gmail.com>:
> Usually people simply leave cpu checkin in default
> mode (which is fpu level) but idea was to be able
> to compose a mixture of settings, for this sake
> CPU_CAP_ constants are bit shifts. Thus use bitwise
> operator for this.
>
> Same time define CPU_CAP_ as bit shifts explicitly
> and use explicit CPU_CAP_NONE compare where needed.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>

Reviewed-by: Dmitry Safonov <0x7f454c46 at gmaill.com>

Thanks,
             Dmitry


More information about the CRIU mailing list