[Top] [All Lists]

Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU

To: Ralf Baechle <>
Subject: Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU
From: Robert Millan <>
Date: Thu, 11 Nov 2010 15:47:35 +0100
Cc: wu zhangjin <>, David Daney <>, Aurelien Jarno <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:sender:date:from:subject:to :cc:references:in-reply-to:x-mailer:message-id:mime-version :content-type; bh=CF+CDz0EY6LLLYN6cvWUD9FP7j7zAXobvo9oOGwTjHc=; b=R9/2FjO8NUys0fPHYEqmxndHj0p012l6ERADux7nG0EI2O8wmY7K+DULWuA3QfJ5zq wshf4KVW1JByCNNqNbauAXmGzfBEjCbYWtESTYojZuLuVWkeMp3CSo11qziVn+FtNO/i 3/nOJgZaj5JiDGj/DSnElThn3xFJMm3vE2lyU=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=sender:date:from:subject:to:cc:references:in-reply-to:x-mailer :message-id:mime-version:content-type; b=XuazlcYThTdoK/wQ5mkdqLUfhZjr9dwhtdA44iDCBtQAxWlOzeu/6Ozah5vyVRdS6/ FwPAyP91tsZEydyFv//aGi33T81/rksy2XKvIAuGmOMBo5OORrMhdv7Qdj64NhUQDipQ vSG0uRuns7ADJ4ybWdlxYww3ZhC5k6J1qRhe4=
In-reply-to: <> (from on Tue Nov 9 16:40:55 2010)
Original-recipient: rfc822;
References: <1289305442.31389.0@thorin> <>
El 09/11/10 16:40:55, en/na Ralf Baechle va escriure:
> Cavium introduced this idion first.  Now your patch is repeating it
> and I'm
> sure other SMP platforms will soon use it.   I don't want a thousand
> if (cpu == 0) in that file, so can you cook a patch that introduces a
> helper, something like
> static void set_elf_platform(const char *plat)
> {
>       if (cpu == 0)
>               __elf_platform = plat;
> }
> Then use that for all assignments to __elf_platform?  Thanks.


Attachment: loongson2f.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>