int err, i;
 
        if (!psci_ops.affinity_info)
-               return 1;
+               return 0;
        /*
         * cpu_kill could race with cpu_die and we can
         * potentially end up declaring this cpu undead
                err = psci_ops.affinity_info(cpu_logical_map(cpu), 0);
                if (err == PSCI_0_2_AFFINITY_LEVEL_OFF) {
                        pr_info("CPU%d killed.\n", cpu);
-                       return 1;
+                       return 0;
                }
 
                msleep(10);
 
        pr_warn("CPU%d may not have shut down cleanly (AFFINITY_INFO reports %d)\n",
                        cpu, err);
-       /* Make op_cpu_kill() fail. */
-       return 0;
+       return -ETIMEDOUT;
 }
 #endif
 #endif
 
         * time and hope that it's dead, so let's skip the wait and just hope.
         */
        if (!cpu_ops[cpu]->cpu_kill)
-               return 1;
+               return 0;
 
        return cpu_ops[cpu]->cpu_kill(cpu);
 }
  */
 void __cpu_die(unsigned int cpu)
 {
+       int err;
+
        if (!wait_for_completion_timeout(&cpu_died, msecs_to_jiffies(5000))) {
                pr_crit("CPU%u: cpu didn't die\n", cpu);
                return;
         * verify that it has really left the kernel before we consider
         * clobbering anything it might still be using.
         */
-       if (!op_cpu_kill(cpu))
-               pr_warn("CPU%d may not have shut down cleanly\n", cpu);
+       err = op_cpu_kill(cpu);
+       if (err)
+               pr_warn("CPU%d may not have shut down cleanly: %d\n",
+                       cpu, err);
 }
 
 /*