arch/powerpc/platforms/pasemi/time.c

Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/pasemi/time.c

File Facts

System
Linux kernel
Corpus path
arch/powerpc/platforms/pasemi/time.c
Extension
.c
Size
337 bytes
Lines
19
Domain
Architecture Layer
Bucket
arch/powerpc
Inferred role
Architecture Layer: implementation source
Status
source 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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2006 PA Semi, Inc
 *
 * Maintained by: Olof Johansson <olof@lixom.net>
 */

#include <linux/time.h>

#include <asm/time.h>

#include "pasemi.h"

time64_t __init pas_get_boot_time(void)
{
	/* Let's just return a fake date right now */
	return mktime64(2006, 1, 1, 12, 0, 0);
}

Annotation

Implementation Notes