Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  kexec.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright 2006 Michael Ellerman, IBM Corporation
 */


#include <linux/kernel.h>
#include <linux/interrupt.h>

#include <asm/setup.h>
#include <asm/page.h>
#include <asm/firmware.h>
#include <asm/kexec.h>
#include <asm/xics.h>
#include <asm/xive.h>
#include <asm/smp.h>
#include <asm/plpar_wrappers.h>

#include "pseries.h"

void pseries_kexec_cpu_down(int crash_shutdown, int secondary)
{
 /*
 * Don't risk a hypervisor call if we're crashing
 * XXX: Why? The hypervisor is not crashing. It might be better
 * to at least attempt unregister to avoid the hypervisor stepping
 * on our memory.
 */

 if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) {
  int ret;
  int cpu = smp_processor_id();
  int hwcpu = hard_smp_processor_id();

  if (get_lppaca()->dtl_enable_mask) {
   ret = unregister_dtl(hwcpu);
   if (ret) {
    pr_err("WARNING: DTL deregistration for cpu "
           "%d (hw %d) failed with %d\n",
           cpu, hwcpu, ret);
   }
  }

  ret = unregister_slb_shadow(hwcpu);
  if (ret) {
   pr_err("WARNING: SLB shadow buffer deregistration "
          "for cpu %d (hw %d) failed with %d\n",
          cpu, hwcpu, ret);
  }

  ret = unregister_vpa(hwcpu);
  if (ret) {
   pr_err("WARNING: VPA deregistration for cpu %d "
          "(hw %d) failed with %d\n", cpu, hwcpu, ret);
  }
 }

 if (xive_enabled()) {
  xive_teardown_cpu();

  if (!secondary)
   xive_shutdown();
 } else
  xics_kexec_teardown_cpu(secondary);
}

Messung V0.5
C=96 H=28 G=70

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge