[Skiboot] [PATCH v2 5/5] fast-reboot: remove CAPI check

Gavin Shan gwshan at linux.vnet.ibm.com
Mon Jan 16 10:52:21 AEDT 2017


On Fri, Jan 13, 2017 at 04:09:41PM +1100, Andrew Donnellan wrote:
>Now that we can handle disabling CAPI mode on PHBs, we don't need to
>disable fast reboot if there's a CAPI mode PHB.
>
>Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

Reviewed-by: Gavin Shan <gwshan at linux.vnet.ibm.com>

>---
> core/fast-reboot.c | 12 ------------
> 1 file changed, 12 deletions(-)
>
>diff --git a/core/fast-reboot.c b/core/fast-reboot.c
>index eec6021..41e87e3 100644
>--- a/core/fast-reboot.c
>+++ b/core/fast-reboot.c
>@@ -312,7 +312,6 @@ void fast_reboot(void)
> {
> 	bool success;
> 	static int fast_reboot_count = 0;
>-	struct proc_chip *chip;
> 
> 	if (proc_gen != proc_gen_p8) {
> 		prlog(PR_DEBUG,
>@@ -334,17 +333,6 @@ void fast_reboot(void)
> 	}
> 	unlock(&fast_reboot_disabled_lock);
> 
>-	lock(&capi_lock);
>-	for_each_chip(chip) {
>-		if (chip->capp_phb3_attached_mask) {
>-			prlog(PR_NOTICE,
>-			      "RESET: CAPP attached, cannot fast reboot\n");
>-			unlock(&capi_lock);
>-			return;
>-		}
>-	}
>-	unlock(&capi_lock);
>-
> 	prlog(PR_NOTICE, "RESET: Initiating fast reboot %d...\n", ++fast_reboot_count);
> 	free(fdt);
> 
>-- 
>git-series 0.9.1
>
>_______________________________________________
>Skiboot mailing list
>Skiboot at lists.ozlabs.org
>https://lists.ozlabs.org/listinfo/skiboot



More information about the Skiboot mailing list