arch/parisc/lib/delay.c

Source file repositories/reference/linux-study-clean/arch/parisc/lib/delay.c

File Facts

System
Linux kernel
Corpus path
arch/parisc/lib/delay.c
Extension
.c
Size
1830 bytes
Lines
73
Domain
Architecture Layer
Bucket
arch/parisc
Inferred role
Architecture Layer: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

if (unlikely(cpu != smp_processor_id())) {
			loops -= (now - bclock);
			cpu = smp_processor_id();
			bclock = mfctl(16);
		}
	}
	preempt_enable();
}


void __udelay(unsigned long usecs)
{
	__cr16_delay(usecs * ((unsigned long)boot_cpu_data.cpu_hz / 1000000UL));
}
EXPORT_SYMBOL(__udelay);

Annotation

Implementation Notes