public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: santosh.shilimkar@ti•com (Santosh Shilimkar)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 2/3] ARM: keystone: Enable SMP support on Keystone machines
Date: Tue, 11 Jun 2013 09:34:51 -0400	[thread overview]
Message-ID: <51B7277B.3080107@ti.com> (raw)
In-Reply-To: <CANuQgHGKqnU1itAQBqjS2xY+JHz0SNPJ6rM2ZfMV8tO32f0Qnw@mail.gmail.com>

On Tuesday 11 June 2013 01:16 AM, Chander Kashyap wrote:
> 2013/6/11 Santosh Shilimkar <santosh.shilimkar@ti•com>:
>> Add basic SMP support for Keystone machines. This does not
>> include support for CPU hotplug for now.
>>
>> Cc: Olof Johansson <olof@lixom•net>
>> Cc: Arnd Bergmann <arnd@arndb•de>
>> Cc: arm at kernel.org
>>
>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti•com>
>> ---

[..]

>> diff --git a/arch/arm/mach-keystone/platsmp.c b/arch/arm/mach-keystone/platsmp.c
>> new file mode 100644
>> index 0000000..3071dda
>> --- /dev/null
>> +++ b/arch/arm/mach-keystone/platsmp.c
>> @@ -0,0 +1,67 @@
>> +/*
>> + * Keystone SOC SMP platform code
>> + *
>> + * Copyright 2013 Texas Instruments, Inc.
>> + *     Cyril Chemparathy <cyril@ti•com>
>> + *     Santosh Shilimkar <santosh.shillimkar@ti•com>
>> + *
>> + * Based on platsmp.c, Copyright (C) 2002 ARM Ltd.
>> + *
>> + * This program is free software; you can redistribute it and/or modify it
>> + * under the terms and conditions of the GNU General Public License,
>> + * version 2, as published by the Free Software Foundation.
>> + */
>> +
>> +#include <linux/init.h>
>> +#include <linux/smp.h>
>> +#include <linux/io.h>
>> +
>> +#include <asm/smp_plat.h>
>> +
>> +#include "keystone.h"
>> +
>> +static void __init keystone_smp_init_cpus(void)
>> +{
>> +       unsigned int i, ncores;
>> +
>> +       ncores = 4;
> This hardcoding can be done away, if cpu nodes are passed through DT.
> Also set set_cpu_possible will be done by "arm_dt_init_cpu_maps" in  devtree.c
> 
Thanks. Will have a look at it.

Regards,
Santosh

  reply	other threads:[~2013-06-11 13:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10 19:55 [PATCH 0/3] ARM: Add minimal support for TI Keystone SOCs Santosh Shilimkar
2013-06-10 19:55 ` [PATCH 1/3] ARM: keystone: Add minimal TI Keystone platform support Santosh Shilimkar
2013-06-11 19:27   ` Arnd Bergmann
2013-06-11 20:10     ` Santosh Shilimkar
2013-06-11 20:24       ` Arnd Bergmann
2013-06-11 20:56         ` Santosh Shilimkar
2013-06-12 19:30           ` Santosh Shilimkar
2013-06-10 19:55 ` [PATCH 2/3] ARM: keystone: Enable SMP support on Keystone machines Santosh Shilimkar
2013-06-11  5:16   ` Chander Kashyap
2013-06-11 13:34     ` Santosh Shilimkar [this message]
2013-06-11 14:54       ` Santosh Shilimkar
2013-06-10 19:55 ` [PATCH 3/3] ARM: dts: keystone: Add minimal Keystone SOC device tree data Santosh Shilimkar
2013-06-11  9:38   ` Mark Rutland
2013-06-11 13:40     ` Santosh Shilimkar

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=51B7277B.3080107@ti.com \
    --to=santosh.shilimkar@ti$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox