mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +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
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace Kernel {
|
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)
|
if (feature == CPUFeature::SSE3)
|
||||||
return "sse3"sv;
|
return "sse3"sv;
|
||||||
|
|
|
@ -237,6 +237,6 @@ AK_MAKE_ARBITRARY_SIZED_ENUM(CPUFeature, u256,
|
||||||
NONSTOP_TSC = CPUFeature(1u) << 191u, // Invariant TSC
|
NONSTOP_TSC = CPUFeature(1u) << 191u, // Invariant TSC
|
||||||
__End = CPUFeature(1u) << 255u);
|
__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;
|
first = false;
|
||||||
else
|
else
|
||||||
MUST(builder.try_append(' '));
|
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());
|
return KString::must_create(builder.string_view());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue