pc: intel display driver: avoid sysfs related hang

Issue #4450
This commit is contained in:
Alexander Boettcher 2022-04-12 10:46:47 +02:00 committed by Christian Helmuth
parent 2a47379ab5
commit 2ec6a8249a
2 changed files with 70 additions and 88 deletions

View File

@ -97,6 +97,12 @@ void kernfs_get(struct kernfs_node * kn)
}
void kernfs_put(struct kernfs_node * kn)
{
lx_emul_trace(__func__);
}
int software_node_notify(struct device * dev,unsigned long action)
{
lx_emul_trace(__func__);
@ -178,6 +184,70 @@ int sysfs_create_groups(struct kobject * kobj,const struct attribute_group ** gr
}
void sysfs_remove_link(struct kobject * kobj,const char * name)
{
lx_emul_trace(__func__);
}
void sysfs_remove_groups(struct kobject * kobj,const struct attribute_group ** groups)
{
lx_emul_trace(__func__);
}
void sysfs_remove_dir(struct kobject * kobj)
{
lx_emul_trace(__func__);
}
void sysfs_remove_bin_file(struct kobject * kobj,const struct bin_attribute * attr)
{
lx_emul_trace(__func__);
}
bool sysfs_remove_file_self(struct kobject * kobj,const struct attribute * attr)
{
lx_emul_trace(__func__);
return false;
}
void sysfs_remove_files(struct kobject * kobj,const struct attribute * const * ptr)
{
lx_emul_trace(__func__);
}
void sysfs_delete_link(struct kobject * kobj,struct kobject * targ,const char * name)
{
lx_emul_trace(__func__);
}
int sysfs_emit(char * buf,const char * fmt,...)
{
lx_emul_trace(__func__);
return PAGE_SIZE;
}
int sysfs_emit_at(char * buf, int at, const char * fmt,...)
{
lx_emul_trace(__func__);
return at > PAGE_SIZE ? PAGE_SIZE : PAGE_SIZE - at;
}
void sysfs_notify(struct kobject * kobj,const char * dir,const char * attr)
{
lx_emul_trace(__func__);
}
void intel_engines_add_sysfs(struct drm_i915_private * i915)
{
lx_emul_trace(__func__);

View File

@ -1517,14 +1517,6 @@ void kernel_fpu_end(void)
struct kobject *kernel_kobj;
#include <linux/kernfs.h>
void kernfs_put(struct kernfs_node * kn)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/fs.h>
void kill_anon_super(struct super_block * sb)
@ -2024,86 +2016,6 @@ void synchronize_srcu(struct srcu_struct * ssp)
}
#include <linux/sysfs.h>
void sysfs_delete_link(struct kobject * kobj,struct kobject * targ,const char * name)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
int sysfs_emit(char * buf,const char * fmt,...)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
int sysfs_emit_at(char * buf,int at,const char * fmt,...)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
void sysfs_notify(struct kobject * kobj,const char * dir,const char * attr)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
void sysfs_remove_bin_file(struct kobject * kobj,const struct bin_attribute * attr)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
void sysfs_remove_dir(struct kobject * kobj)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
bool sysfs_remove_file_self(struct kobject * kobj,const struct attribute * attr)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
void sysfs_remove_files(struct kobject * kobj,const struct attribute * const * ptr)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
void sysfs_remove_groups(struct kobject * kobj,const struct attribute_group ** groups)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/sysfs.h>
void sysfs_remove_link(struct kobject * kobj,const char * name)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/task_work.h>
int task_work_add(struct task_struct * task,struct callback_head * work,enum task_work_notify_mode notify)