Revert "qca: restricts 'runmulticore' command on secondary cores"

This reverts commit a3dd633252.
This commit is contained in:
Santan Kumar 2018-02-01 16:19:00 +05:30 committed by Gerrit - the friendly Code Review server
parent 463c793088
commit 6d18b009c7

View file

@ -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));