1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

Kernel: Make HardwareTimer::model() return StringView

This commit is contained in:
Andreas Kling 2021-08-05 20:50:00 +02:00
parent 32a150f2b4
commit f572d96539
5 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,7 @@ class PIT final : public HardwareTimer<IRQHandler> {
public:
static NonnullRefPtr<PIT> initialize(Function<void(const RegisterState&)>);
virtual HardwareTimerType timer_type() const override { return HardwareTimerType::i8253; }
virtual const char* model() const override { return "i8254"; }
virtual StringView model() const override { return "i8254"sv; }
virtual size_t ticks_per_second() const override;
virtual bool is_periodic() const override { return m_periodic; }