Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756018AbYGHUE1 (ORCPT ); Tue, 8 Jul 2008 16:04:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753475AbYGHUEU (ORCPT ); Tue, 8 Jul 2008 16:04:20 -0400 Received: from OSB1387.piap.pl ([195.187.100.11]:45217 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbYGHUEU (ORCPT ); Tue, 8 Jul 2008 16:04:20 -0400 To: kyle@mcmartin.ca Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] padlock: don't whinge when loaded on a non-VIA cpu References: <20080708190427.GA28899@phobos.i.cabal.ca> From: Krzysztof Halasa Date: Tue, 08 Jul 2008 22:04:17 +0200 In-Reply-To: <20080708190427.GA28899@phobos.i.cabal.ca> (Kyle McMartin's message of "Tue\, 8 Jul 2008 15\:04\:27 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 592 Lines: 20 Kyle McMartin writes: > --- a/drivers/crypto/padlock-aes.c > +++ b/drivers/crypto/padlock-aes.c > @@ -384,6 +384,9 @@ static int __init padlock_init(void) > { > int ret; > > + if (!(boot_cpu_data.x86_vendor == X86_VENDOR_CENTAUR)) > + return -ENODEV; > + BTW C has "!=" operator, may be useful. -- Krzysztof Halasa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/