mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "Revert "qca: restricts 'runmulticore' command on secondary cores""
This commit is contained in:
commit
ce563c425c
1 changed files with 1 additions and 13 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue