Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/arch/mips/kernel/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 839 B image not shown  

Quelle  i8253.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0
/*
 * i8253.c  8253/PIT functions
 *
 */

#include <linux/clockchips.h>
#include <linux/i8253.h>
#include <linux/export.h>
#include <linux/smp.h>
#include <linux/irq.h>

#include <asm/time.h>

static irqreturn_t timer_interrupt(int irq, void *dev_id)
{
 i8253_clockevent.event_handler(&i8253_clockevent);

 return IRQ_HANDLED;
}

void __init setup_pit_timer(void)
{
 unsigned long flags = IRQF_NOBALANCING | IRQF_TIMER;

 clockevent_i8253_init(true);
 if (request_irq(0, timer_interrupt, flags, "timer", NULL))
  pr_err("Failed to request irq 0 (timer)\n");
}

static int __init init_pit_clocksource(void)
{
 if (num_possible_cpus() > 1 || /* PIT does not scale! */
     !clockevent_state_periodic(&i8253_clockevent))
  return 0;

 return clocksource_i8253_init();
}
arch_initcall(init_pit_clocksource);

Messung V0.5 in Prozent
C=96 H=91 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.