Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实现gettimeofday()系统调用和clocksource+timekeeping子模块 #278

Merged
merged 27 commits into from
Jun 17, 2023

Conversation

houmkh
Copy link
Collaborator

@houmkh houmkh commented Jun 7, 2023

  • 实现gettimeofday()系统调用
  • 实现clocksource+timekeeping子模块部分功能
  • 实现了timespec转换成日期时间

Copy link
Member

@fslongjin fslongjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有几个地方需要更改的,已经在评审注释里面写了。
然后就是,目前存在很多warning的地方,需要改一下。
还有就是,有些地方的kdebug需要删除或者注释掉他们

kernel/src/process/process.c Show resolved Hide resolved
kernel/src/time/clocksource.rs Show resolved Hide resolved
kernel/src/time/jiffies.rs Outdated Show resolved Hide resolved
kernel/src/time/jiffies.rs Outdated Show resolved Hide resolved
kernel/src/time/timeconv.rs Outdated Show resolved Hide resolved
kernel/src/time/timekeeping.rs Outdated Show resolved Hide resolved
kernel/src/time/timekeeping.rs Show resolved Hide resolved
kernel/src/time/timer.rs Outdated Show resolved Hide resolved
}

/// # watchdog线程的逻辑,执行unstable的后续操作
pub fn clocksource_watchdog_kthread() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clocksource_watchdog_kthread这个函数有问题,因为如果它是内核线程的话,应该要套一个loop{},不然它执行一次就退出了

@fslongjin fslongjin merged commit 36fd013 into DragonOS-Community:master Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants