mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel: Use a descriptive name for x86-64 cpu_feature_to_string_view
Settled for `cpu_feature_to_name` as that naming is more descriptive and similarly named `cpu_feature_to_description` function will be provided for Aarch64.
This commit is contained in:
parent
649f78d0a4
commit
823aab8296
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
StringView cpu_feature_to_string_view(CPUFeature::Type const& feature)
|
||||
StringView cpu_feature_to_name(CPUFeature::Type const& feature)
|
||||
{
|
||||
if (feature == CPUFeature::SSE3)
|
||||
return "sse3"sv;
|
||||
|
|
|
@ -237,6 +237,6 @@ AK_MAKE_ARBITRARY_SIZED_ENUM(CPUFeature, u256,
|
|||
NONSTOP_TSC = CPUFeature(1u) << 191u, // Invariant TSC
|
||||
__End = CPUFeature(1u) << 255u);
|
||||
|
||||
StringView cpu_feature_to_string_view(CPUFeature::Type const&);
|
||||
StringView cpu_feature_to_name(CPUFeature::Type const&);
|
||||
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ NonnullOwnPtr<KString> ProcessorInfo::build_features_string(Processor const& pro
|
|||
first = false;
|
||||
else
|
||||
MUST(builder.try_append(' '));
|
||||
MUST(builder.try_append(cpu_feature_to_string_view(feature)));
|
||||
MUST(builder.try_append(cpu_feature_to_name(feature)));
|
||||
}
|
||||
}
|
||||
return KString::must_create(builder.string_view());
|
||||
|
|
Loading…
Reference in a new issue