All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: Re: [PATCH 1/7] Netlogic XLR/XLS processor IDs.
Date: Wed, 16 Mar 2011 15:01:21 +0300	[thread overview]
Message-ID: <4D80A691.2020902@mvista.com> (raw)
In-Reply-To: <d1e612aba3921501184783470ef06de5fbc2bc51.1300275485.git.jayachandranc@netlogicmicro.com>

Hello.

On 16-03-2011 14:57, Jayachandran C wrote:

> Add Netlogic Microsystems company ID and processor IDs for XLR
> and XLS processors for CPU probe. Add CPU_XLR to cpu_type_enum.

> Signed-off-by: Jayachandran C<jayachandranc@netlogicmicro.com>
[...]

> diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
> index f65d4c8..a995d56 100644
> --- a/arch/mips/kernel/cpu-probe.c
> +++ b/arch/mips/kernel/cpu-probe.c
> @@ -988,6 +988,59 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu)
>   	}
>   }
>
> +static inline void cpu_probe_netlogic(struct cpuinfo_mips *c, int cpu)
> +{
> +	decode_configs(c);
> +
> +	c->options = (MIPS_CPU_TLB     |
> +			MIPS_CPU_4KEX    |
> +			MIPS_CPU_COUNTER |
> +			MIPS_CPU_DIVEC   |
> +			MIPS_CPU_WATCH   |
> +			MIPS_CPU_EJTAG   |
> +			MIPS_CPU_LLSC);
> +
> +	switch (c->processor_id&  0xff00) {
> +	case PRID_IMP_NETLOGIC_XLR732:
> +	case PRID_IMP_NETLOGIC_XLR716:
> +	case PRID_IMP_NETLOGIC_XLR532:
> +	case PRID_IMP_NETLOGIC_XLR308:
> +	case PRID_IMP_NETLOGIC_XLR532C:
> +	case PRID_IMP_NETLOGIC_XLR516C:
> +	case PRID_IMP_NETLOGIC_XLR508C:
> +	case PRID_IMP_NETLOGIC_XLR308C:
> +		c->cputype = CPU_XLR;
> +		__cpu_name[cpu] = "Netlogic XLR";
> +		break;
> +
> +	case PRID_IMP_NETLOGIC_XLS608:
> +	case PRID_IMP_NETLOGIC_XLS408:
> +	case PRID_IMP_NETLOGIC_XLS404:
> +	case PRID_IMP_NETLOGIC_XLS208:
> +	case PRID_IMP_NETLOGIC_XLS204:
> +	case PRID_IMP_NETLOGIC_XLS108:
> +	case PRID_IMP_NETLOGIC_XLS104:
> +	case PRID_IMP_NETLOGIC_XLS616B:
> +	case PRID_IMP_NETLOGIC_XLS608B:
> +	case PRID_IMP_NETLOGIC_XLS416B:
> +	case PRID_IMP_NETLOGIC_XLS412B:
> +	case PRID_IMP_NETLOGIC_XLS408B:
> +	case PRID_IMP_NETLOGIC_XLS404B:
> +		c->cputype = CPU_XLR;
> +		__cpu_name[cpu] = "Netlogic XLS";
> +		break;
> +
> +	default:
> +		printk(KERN_INFO "Unknown Netlogic chip id [%02x]!\n",
> +		       c->processor_id);
> +		c->cputype = CPU_XLR;

    Why repeat this assignemnt in every case? Do it once only.

WBR, Sergei

  reply	other threads:[~2011-03-16 12:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 11:56 [PATCH 0/7] Support for Netlogic XLR/XLS processors Jayachandran C
2011-03-16 11:57 ` [PATCH 1/7] Netlogic XLR/XLS processor IDs Jayachandran C
2011-03-16 12:01   ` Sergei Shtylyov [this message]
2011-03-16 13:24     ` Jayachandran C.
2011-03-16 11:57 ` [PATCH 2/7] mach-netlogic include directory and files Jayachandran C
2011-03-16 11:57 ` [PATCH 3/7] Add XLR/XLS cache and TLB support Jayachandran C
2011-03-16 16:49   ` David Daney
2011-03-16 17:22     ` Jayachandran C.
2011-03-16 11:58 ` [PATCH 4/7] Add XLR to asm/module.h Jayachandran C
2011-03-16 11:58 ` [PATCH 5/7] Platform files for XLR/XLS processor support Jayachandran C
2011-03-16 11:59 ` [PATCH 6/7] Kconfig and Makefile update for Netlogic XLR/XLS Jayachandran C
2011-03-16 11:59 ` [PATCH 7/7] Add default configuration for XLR/XLS processors Jayachandran C
  -- strict thread matches above, loose matches on Subject: below --
2011-03-18 13:27 [PATCH 0/7] Support for Netlogic " Jayachandran C
2011-03-18 13:28 ` [PATCH 1/7] Netlogic XLR/XLS processor IDs Jayachandran C
2011-03-25  4:56 [PATCH 0/7] Support for Netlogic XLR/XLS processors Jayachandran C
2011-03-25  4:57 ` [PATCH 1/7] Netlogic XLR/XLS processor IDs Jayachandran C
2011-03-25 11:26   ` Sergei Shtylyov
2011-03-25 12:58     ` Ralf Baechle
2011-03-25 13:19       ` Jayachandran C.
2011-03-25 13:44         ` Ralf Baechle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D80A691.2020902@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=jayachandranc@netlogicmicro.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.