Messages in this thread | | | Subject | Re: [PATCH] padlock: don't whinge when loaded on a non-VIA cpu | From | Krzysztof Halasa <> | Date | Tue, 08 Jul 2008 22:04:17 +0200 |
| |
Kyle McMartin <kmcmartin@redhat.com> 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
| |