From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753040AbdJLIQj (ORCPT ); Thu, 12 Oct 2017 04:16:39 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:43816 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdJLIQi (ORCPT ); Thu, 12 Oct 2017 04:16:38 -0400 X-Google-Smtp-Source: AOwi7QDa1XD8VJAJuG71de+fvwizVH0rtIVoG8WHCcsgaN5A+qeCGGmR/iGDwSMPzTANdyASTyNSBg== Date: Thu, 12 Oct 2017 10:16:34 +0200 From: Ingo Molnar To: Andi Kleen Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen , Jonathan McDowell , Thomas Gleixner Subject: Re: [PATCH v9 2/5] x86/cpuid: Add generic table for cpuid dependencies Message-ID: <20171012081634.5xu2vtmmt3hbqohp@gmail.com> References: <20171007000328.12843-1-andi@firstfloor.org> <20171007000328.12843-3-andi@firstfloor.org> <20171012080733.4y5wlghjr524cgr3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171012080733.4y5wlghjr524cgr3@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ingo Molnar wrote: > > + bool changed; > > + __u32 disable[NCAPINTS + NBUGINTS]; > > + unsigned long *disable_mask = (unsigned long *)disable; > > + const struct cpuid_dep *d; > > The constant forced types are really ugly and permeate the whole code. Please > introduce some suitably named helpers in the x86 bitops file that work on local > variables: > > var &= ~(1< var |= 1<