From 6d18b009c7c635cbad94067081369df930b765cb Mon Sep 17 00:00:00 2001 From: Santan Kumar Date: Thu, 1 Feb 2018 16:19:00 +0530 Subject: [PATCH] Revert "qca: restricts 'runmulticore' command on secondary cores" This reverts commit a3dd63325279f882271fa15530905d866a853c4a. --- board/qca/arm/common/cmd_runmulticore.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/board/qca/arm/common/cmd_runmulticore.c b/board/qca/arm/common/cmd_runmulticore.c index c1cbb9c8e4..d6ec16c92d 100644 --- a/board/qca/arm/common/cmd_runmulticore.c +++ b/board/qca/arm/common/cmd_runmulticore.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. + * Copyright (c) 2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -102,22 +102,10 @@ static int do_runmulticore(cmd_tbl_t *cmdtp, int core_status = 0; int core_on_status = 0; char *ptr = NULL; - cmd_tbl_t *cmd; if ((argc <= 1) || (argc > 4)) return CMD_RET_USAGE; - /* Prohibits 'runmulticore' command on secondary cores */ - for (i = 1; i < argc; i++) { - cmd = find_cmd(argv[i]); - if (cmd - && !strncmp(cmd->name, "runmulticore", 12)) { - printf("command '%s' unallowed on secondary cores!\n", - cmd->name); - return CMD_RET_FAILURE; - } - } - /* Setting up stack for secondary cores */ memset(core, 0, sizeof(core));